DEMO. NOT PRODUCTION WALLET. Testnet only. Coins kept in this browser can be lost.

Corner Shop

Pay from your browser

This page pays SpiffyVault payment links with the @spiffyvault/payments JavaScript SDK, from a small wallet kept in this browser. Fund it from SpiffyVault or any BRC-100 wallet. Testnet coins only.

1

Your browser wallet

Balance

…

Reading this wallet's coins…

Wallet key, backup and housekeeping

This wallet lives in this browser's storage and nowhere else. A backup holds everything: the key, the coins paid by PeerPay and the activity. The key alone spends only the address coins.

2

Choose what to pay

3

Pay

How to reach the payee

How this page pays

The page starts a libp2p node, reaches the SpiffyVault Ricochet server over secure WebSockets, and calls pay(). The SDK checks the link's signature and the shop's payee file, then tries the payee's phone live through the server's relay, and falls back to the payee's mailbox. The page's wallet only builds the transaction. The payee checks it and puts it on the network.

const { node, privateKey } = await createPaymentNode()
const ricochet = new RicochetClient(node, { servers: [{
  peerId: SPIFFYVAULT_RICOCHET.peerId, addrs: [SPIFFYVAULT_RICOCHET.wss] }] })
const result = await pay({ link }, {
  funder,            // builds a signed transaction for the payee's outputs
  network: 'testnet',
  libp2p: node, relays: [SPIFFYVAULT_RICOCHET.wss],   // live
  ricochet, identityKey: privateKey,                  // mailbox, sealed from the node's key
  onProgress: p => show(p.path, p.step)
})

Developer guide: spiffyvault.net/developers.