Skip to content

Paykit: Decentralized Payment Protocol (Work in Progress)

⚠️ NOTE: Paykit is currently under active development and is NOT production-ready. The protocol and implementation are subject to significant changes. Integration work in Bitkit serves as a testbed for protocol development.

Paykit is a payment protocol built on Pubky for payment discovery and coordination across multiple payment methods, including Bitcoin on-chain and Lightning. Apps can start from a Pubky public key, discover public payment details, privately share payment details over encrypted channels, and let payers retrieve encrypted receipts.

Paykit uses a payee’s Pubky public key as the stable starting point for payment discovery. Instead of asking for an address or invoice out of band, an app can look up the published payment details on a Homeserver under /pub/paykit/v0/{payment_endpoint_identifier}.

This enables applications where users can pay directly to profiles while still letting the integrating wallet or payment processor decide which payment rail to use.

Paykit uses Pubky Homeservers for payment data and Pubky Noise for private Paykit messages.

Payees publish payment details to their Homeserver. Anyone who knows the payee’s Pubky public key can discover those public details.

When a payment should not rely on public payment details, a payee can share a private payment list with a specific counterparty over an encrypted channel. Private payment details are exchanged as Private Payment Envelopes.

Paykit receipts are encrypted before storage. The payee stores the encrypted receipt on their Homeserver and sends the payer the access details needed to retrieve and decrypt it.

Paykit helps apps discover the payment details a payee publishes, but actual payment method support depends on the integrating wallet or payment application. The initial examples focus on Bitcoin on-chain and Lightning, while the endpoint identifier format is designed to support other payment methods over time. See the Paykit Payment Endpoint Identifier Specification.

Paykit does not move funds, custody keys, choose a payment rail, or implement wallet logic. Payment method selection, payment execution and key management remain the responsibility of the integrating wallet, payment processor, or application.

The current implementation includes public payment lists, private payment envelopes, encrypted links, and encrypted receipt access. Bitkit integrations on iOS and Android are used as protocol testbeds before stabilization.

Pay directly to profiles using Pubky identity without asking for an address or invoice out of band.

Use public or private payment details for tips, paid content, or creator support.

Applications could use Paykit discovery around store checkouts, service bookings, or marketplace payments while keeping actual payment execution in the wallet or payment processor.

Atomicity Protocol - Peer-to-peer mutual credit system research exploring trust-based payment routing using Pubky’s Semantic Social Graph. Designed as settlement infrastructure for credit issuance and transfer across economic scales from peer-to-peer to institutional banking. Currently in research phase.