Skip to main content

Protocol architecture

The current Miden Name deployment combines permanent name issuance, configurable registration pricing, direct payment settlement, and owner-authorized account upgrades. The issued domain asset is the ownership authority.

Components and responsibilities​

ComponentResponsibility
Domain faucetValidates registrations, enforces one-time issuance, and maintains pricing and referral configuration.
Public request notesCommit the requested operation, payment, intended target, and recovery conditions.
Standard P2ID deliveriesDeliver a name to its purchaser and registration revenue to the accepted protocol owner.
P2N / P2NE payment notesAuthorize collection through exact domain custody; P2NE also permits a committed fallback after a deadline.
Ownable2StepGives administrative authority to the accepted owner; nomination alone does not transfer authority.
UpgradeManagerAllows owner-authorized replacement of the complete account code, subject to the operational limits below.
DomainOwnershipOptional wallet component for V2 ownership proofs. V1 payment scripts use the existing BasicWallet interface instead.

There is no separate DomainRegistry component in the current deployment. Optional profile or discovery data must not be treated as an ownership ledger. The faucet exposes neither a generic name-mint route nor a generic name-burn route.

Canonical names and readable assets​

A canonical label contains 1–21 lowercase ASCII letters or digits, without the .miden suffix. The contract validates its registration input independently of the website.

The readable NFA format encodes the label into two base-37 chunks. Its value includes the codec version; its complete asset ID binds it to the issuing faucet. A decoder can recover the label without a registry lookup, but must still validate the issuer and every asset limb.

See Ownership and transfers for the asset format and Integration guide for the shared codec.

Registration lifecycle​

  1. The client validates the name and reads the selected token's current price schedule.
  2. The wallet publishes a public request containing the exact payment, target faucet, requested label, pricing commitments, and a sender-reclaim height.
  3. The service consumes the request. It verifies its target, payment token, price state, canonical label, and availability.
  4. Issuance and all payment outputs commit atomically.
  5. The buyer collects the public delivery containing the new domain NFA and one base unit of the payment token.

An availability check is not a reservation. Payment submission is not proof of issuance, and issuance is not proof that the buyer has collected the asset. An eligible request that remains unconsumed can be reclaimed by its original sender after its committed height.

Direct settlement​

Let P be the registration price in token base units, r the applicable referral rate in basis points, C = floor(P × r / 10,000) the commission, and D = 1 base unit. Without a referral, C = 0.

OutputRecipientAssets
Buyer deliveryOriginal request senderNew domain asset plus D
Protocol paymentAccepted owner at settlementP - C - D, if positive
Referral paymentReferrer-domain holder, with the accepted owner as fallbackC, if positive

Registration proceeds go directly into these notes. They do not accumulate in the faucet vault. There are no accumulated referral-balance or lifetime-revenue ledgers and no separate treasury-withdrawer role. The owner can sweep incidental assets held by the faucet; that is distinct from collecting the direct protocol-payment notes.

Network sponsorship and transaction fees are separate from P. The buyer's one-unit receipt amount is taken from the protocol share, not added as another name charge. See Referrals and revenue for a worked example and Pay-to-Name for collection.

Pricing and configuration​

Registration uses a stored, versioned price schedule. The contract can support multiple currencies and owner-controlled price refreshes, including oracle-backed conversion for volatile currencies. A registration does not fetch an arbitrary live oracle price at settlement.

Mainnet initially enables only USDCx. Token decimals, issuer metadata, price revisions, and any required refresh deadline must match the configured payment. A stale schedule or disabled currency blocks registration rather than silently choosing another amount.

Administrative trust​

The accepted owner configures pricing, referral rates, payout settings, and other authorized operations. Owner rotation affects future settlement recipients; previously emitted notes retain their committed recipients and scripts.

The account is upgradeable, not immutable. Replacement code must preserve the fixed storage layout and be reviewed as a complete account image. Local upgrade validation is separate from successful submission on a public network. See Upgrades and administration for the tested boundary and current network-submission limitation.