Pay-to-Name
A Pay-to-Name note lets an account collect assets by proving custody of a specific .miden name. It commits the intended issuer and canonical name rather than trusting a profile address or a mutable address-book entry.
This page describes protocol and integration behavior. It does not mean every wallet has a built-in “send to .miden” field. The current Mainnet frontend has referral management disabled; Testnet exposes the related payment discovery and collection workflow.
P2N and P2NE
- P2N: the account proving the required domain custody can collect the payment.
- P2NE: adds a committed fallback account, reclaim height, and optional timelock.
Before the reclaim height, only the domain-holder path is available, subject to the timelock. At or after that height, the fallback account can also collect. The holder does not lose eligibility at the deadline: the first valid consumption wins. A payment deadline never makes the domain itself expire.
Heights are block numbers. Calendar-time estimates are approximate.
V1: collect the payment, then return the name
Current builders default to V1, which uses the existing BasicWallet asset-transfer interface:
- The account proves custody by moving the exact domain asset into a public return note addressed to itself.
- It receives the payment assets and includes one fungible base unit in that return.
- The user collects the domain return in a later transaction with a separate wallet approval.
The return contains the same name, not a new registration. Until it is collected, the name is in transit and another V1 holder claim for it cannot proceed. At least one positive fungible payment asset is required by V1.
In the website's payment flow, watch for Collect domain and dust or Collect domain receipt after payment consumption. Do not stop after the first successful approval. If Bread is already processing the return, check that transaction before submitting another collection.
The V1 return is public and reveals the name and receiving account even when the account itself is private.
V2: prove initial-vault custody
V2 uses the exact DomainOwnership component and procedure root declared in the release manifest. It checks the account's initial vault, receives the assets directly, and creates no domain return. It also permits NFT-only payments.
A wallet must explicitly support that interface. General Bread compatibility with registration or V1 does not establish V2 support. A name acquired earlier in the same transaction can satisfy V1's transfer-time custody check, but not V2's initial-vault check.
Finding and verifying payments
When the payment interface is enabled, use Scan public payments to discover notes and Verify collections to reconcile previous actions. Referral-feed notes are discovered by the website before they are handed to Bread; the tested flow does not provide automatic referral-feed discovery in the wallet alone.
A note being marked spent is not enough to prove who collected it. Verification must authenticate its consumption under the expected account. Discovery tags help locate candidates; they never authorize spending.
Preserve exact note IDs, wallet request handles, and private transport data where applicable. Public scans cannot reconstruct private note bodies or every missing local history record. See Troubleshooting.
Integration reference
The current manifest declares p2nV1, p2neV1, p2nV2, and p2neV2. Each note's script root fixes its version; consumer arguments cannot switch authorization rules. Existing notes keep their original script and fallback even after owner rotation or a payout-root update.
Use a reviewed release package for exact storage layouts, return identities, and authenticated collection rules. The integration guide describes the required checks and how to request implementation access.