Beldex Privacy Tokens · open source · non-custodial
Prove one token payment. Reveal nothing else.
BelFlow is a TypeScript SDK and verifier for Beldex Confidential Assets. It connects the browser wallet to beldex-wallet-rpc, sends multi-output batches, and lets an auditor check a single payment from its tx_key.
The demo runs on a simulated chain: no wallet, no real funds.
Your apps
Browser wallet
Sign-in, BNS names and BDX checkout through the Beldex browser extension.
Your service
Charge per API call with HTTP 402; agents pay from their own wallet with Flash.
Auditor
Checks a single payment from txid + tx_key + address. Nothing else is revealed.
BelFlow SDK
Providers
One interface over the browser extension, the wallet-rpc sidecar and a deterministic mock chain.
Batch planner
Groups recipients into multi-output transactions and waits out the change lock. Idempotent.
Verifier
Decodes tx_out_zarcanum outputs from the tx_key and checks amount and asset against the commitment.
x402 middleware
Issues 402 challenges and accepts each payment once, in the quoted asset only.
Your Beldex nodes
beldex-wallet-rpc
Each organization runs its own wallet. BelFlow never holds keys or funds.
beldexd
Raw transactions for the zarcanum decoder and inspection.
The gap we fill
Proving a Privacy Token payment from its tx_key
On the feature-confidential-asset branch, tokens are paid as tx_out_zarcanum outputs. Beldex’s check_tx_key does not read them yet. BelFlow decodes them with the same key derivation the wallet uses.
- 1
Payer shares
txid + tx_key + recipient address
- 2
Derive
D = 8 · r · A (same as the recipient’s view key)
- 3
Decode
tx_out_zarcanum: unblind the asset, decrypt the amount
- 4
Check
C = amount · asset + mask · G must match on-chain
- 5
Verified
amount and asset at CRYPTOGRAPHIC_FULL
check_tx_key · feature-confidential-asset @ bc66339
skips tx_out_zarcanum outputs
Its helper only scans txout_to_key, so a token payment is expected to report received: 0. This is a source reading; the testnet run records it.
BelFlow verifier
decodes the token output
Amount and asset id recovered from the tx_key and checked against the output’s commitment. A wrong amount or asset is rejected.
Evidence, not promises
178
unit and integration tests
31
adversarial audit tests (AUD-01 to 05)
9/9
end-to-end flows on a production build
200
Monero crypto test vectors for the ported primitives
- SDK, verifier, x402 rails, demo appBuilt and tested
- zarcanum tx_key decoderTested on vectors · live check pending
- Wallet-rpc flows on the Proto testnetPending a funded wallet-rpc
See it working
Deploy a token, pay a batch, issue a receipt and verify it as the auditor. Then try the wrong-asset attack and watch it fail.
Launch the demo