Derive Payment Address (BRC-42/29)
ordnet_derive_payment_addressDerive a unique, deterministic payment address from an invoice number to keep payments unlinkable on-chain. Enables x402 payment flows with independently verifiable addresses.
Instructions
Derive a unique, deterministic payment address for a given invoice or reference string (BRC-42/29-style key derivation).
Each invoice number yields a different address controlled by the same wallet, so incoming payments for different invoices are unlinkable on-chain — the foundation for clean x402 payment flows. The same invoice always derives the same address, so a payer and payee can compute it independently. Requires an initialized wallet.
Args:
invoiceNumber (string): invoice/reference string
Returns: { address, publicKey, invoiceNumber }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceNumber | Yes | Invoice/reference string; deterministically derives a unique payment address |