The only secret the chain ever sees is already spent.

Reading a private key is the theft, because the key still signs tomorrow. Reading this secret is the spend. Those 32 bytes pay for the action you already committed, and they hit the chain at the moment the router switches to a hash that was never in the transaction. The chain can store that secret forever. It cannot spend it twice.

Nonce 0 On the router
  1. Local
    Seed 32 bytes, held off-chain. It never enters a transaction.
  2. HMAC
    Secret Derived for this chain, account, and nonce.
  3. SHA-256
    Controller The hash the router stores as authority.

secret = HMAC-SHA256(seed,
domain ‖ chain ‖ account ‖ nonce)
controller = SHA-256(secret)

After the reveal, the controller is the hash of the next secret. That secret is not in this transaction.

Reveal 32 bytes Seen, then spent
Stored One hash SHA-256 is the authority
Next secret Hidden Not in this transaction
Account key None No curve on the account

01 — The risk

A private key is a lifetime of signatures.

A key-pair account binds every nonce to one secp256k1 private key. No published result recovers that key from a healthy public key, and a result against RSA does not yield one. The private key is the authority for the life of the account.

  1. The key keeps signing

    Nonce 0 and nonce 10,000 are authorized by the same private key. A copy remains valid for every later signature.

  2. AI sits beside the key

    Possession of the private key is possession of every future signature. An agent that reads it can sign. The curve does not have to fail.

  3. A nonce can leak it

    ECDSA opens when its per-signature nonce is repeated, biased, or partly known. The recovered private key authorizes any later transaction.

Key-pair account zHash
Authority One private key for every nonce SHA-256 of the current secret
After one spend The same key signs the next transfer That secret is spent. The next hash is the controller
What is published A signature that can leak the key One preimage, pinned by an earlier commitment
On the relayer Often the signing key itself A gas key the router does not treat as authority

02 — Authorization

Commit the action. Reveal one secret.

The secret is a bearer token. Anyone who sees it can show that it hashes to the controller. The commitment pins that secret to one action, and it is written before the secret is public.

Commit

The secret stays out of the transaction.

Key
Hash of the wallet and a slot. The slot is a hash of the secret, so the key does not reveal it.SHA-256(abi.encode(wallet, slot))
Fingerprint
Hash of the secret bound to the digest. The reveal is matched against this.SHA-256(abi.encode(secret, digest))
Digest
Chain, wallet, nonce, controller, call, next controller, and the secret, hashed together.SHA-256(tag ‖ chain ‖ wallet ‖ nonce ‖ controller ‖ call ‖ next ‖ secret)

The transaction carries the key, not the wallet address. Another commit is appended. The earliest match is the action.

Reveal

The router rotates, then the wallet calls.

  1. The secret hashes to the stored controller.
  2. The earliest matching fingerprint selects the digest.
  3. 03

    The next controller is stored and the nonce moves.

    04

    The wallet proxy performs the call.

A commit made after the secret is public is a later index. A failed call leaves the new controller in place.

Before After SHA-256(secret 0) SHA-256(secret 1)

Commit and reveal are valid in the same block. The holder broadcasts the secret only after the commitment is included, so the two are not pending together.

03 — Router

The router authorizes. The wallet holds the assets.

Any account may submit a commit or a reveal and pay the gas. That key is not authority. The wallet obeys the router alone.

  1. 01Relayer

    Pays for inclusion Any account can submit. None of them is privileged.
  2. 02Router

    Controller, nonce, commits Checks the secret, rotates, and rejects reentry. The call happens after that.
  3. 03Wallet proxy

    Ether, tokens, and the call The address is known from the controller before the proxy exists. Only the router may call it.

04 — Seed

The seed is the root of every secret.

A wallet is bound to 32 bytes held by its owner, off-chain. The secret for a nonce is HMAC-SHA256 of that seed over the domain, the chain, the account, and the nonce. The same seed on another chain, or another account, derives a different wallet.

Derivation One nonce
Seed 32 bytes Held by the owner

HMAC-SHA256 domain · chain · account · nonce

Secret One nonce Bound to this account

SHA-256

Controller The hash Stored as authority
  1. The seed is 32 bytes, held off-chain. A copy derives every later secret. The wallet and the proof carry no elliptic-curve key.
  2. The holder records the digest before the secret is revealed. Two copies of the seed can commit two digests. A commit that does not match the secret is skipped. The earliest fingerprint that matches is the action, and it cannot be withdrawn.
  3. Loss of the seed leaves the assets in the proxy. The protocol names no owner and no recovery.

05 — Rules

The spend is settled in one call.

The router stores the next controller, then the wallet calls. Each rule is the result of that order.

  1. When Condition Result
  2. Seed

    A seed from the earlier Lamport wallet is refused. This router takes a new seed.

    Refused
  3. Before rotation

    A check that fails before rotation, such as spending more than the balance, reverts the transaction.

    Nonce stays
  4. After rotation

    The new controller remains when the target call fails. The nonce has already moved.

    Controller stays
  5. Return data

    The router does not use a successful return. A return over 1,024 bytes is not copied. The new controller stays.

    Not copied
  6. Two commits

    Two copies can commit two digests. A commit that does not match the secret is skipped. The earliest fingerprint that matches is the one that runs.

    Earliest valid

06 — Derivation

Every secret is bound.

The seed stays off-chain. The secret for a nonce is an HMAC over the domain, the chain, the account, and that nonce.

Open Safe
  1. Domain zHash.secret.v1
  2. Secret HMAC-SHA256(seed,
    domain ‖ chain ‖ account ‖ nonce)
  3. Controller SHA-256(secret)

The same seed on another chain, or another account, derives a different wallet.