Nookdrop
Open app
Docs

How a Nook works.

Plain notes on the cryptography, the contract and what stays public.

Your keys

You sign one fixed message with your wallet. Your browser hashes the two halves of that signature into two secp256k1 keys: a spending key and a viewing key. Their public halves together form your meta-address, written st:eth:0x followed by 66 bytes. That is what your Nook link carries.

Standard wallets (MetaMask, Rabby, most hardware wallets) produce the same signature every time, so signing again rebuilds the same keys on any device. Smart-contract wallets are not supported. Nothing is uploaded and nothing is stored after you close the tab. Never sign the key message on a site other than nookdrop.solutions.

Sending a drop

Nookdrop follows ERC-5564 scheme 1. The sender's browser makes a random key e for this payment only and computes:

  • shared secret S = e · V, where V is the recipient's viewing public key
  • h = keccak256(S); the first byte of h is the view tag
  • one-time public key P = K + h · G, where K is the spending public key, and the address of P

The vault credits the payment to that address and calls the standard ERC-5564 announcer with the ephemeral public key e · G, the view tag, the token and the amount.

Quiet Claim

The recipient's browser downloads all announcements made by the vault, computes S = v · E for each one, discards those whose view tag does not match, and rebuilds the address for the rest. For a match the one-time private key is (k + h) mod n.

That key signs an EIP-712 Claim naming the destination, the relayer fee, a nonce and a deadline ten minutes ahead. The relayer submits it; the vault pays the fee to the relayer and the rest to the destination. The relayer cannot change any signed field. The relayer fee is about 2× the estimated claim gas in ETH, or a flat 0.01 USDG; any surplus stays with the relayer. See the live quote. The contract also has claimDirect for a one-time address that pays its own gas; the app has no button for it, and funding that address links it to you.

Contracts on Robinhood Chain (4663)

ContractAddress
NookVault0x7eA9b2195e80E2bB2be52cAe34C2D7191b5D4552
ERC-5564 Announcer0x55649E01B5Df198D18D95b5cc5051630cfD45564
ERC-6538 Registry0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538
USDG0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168

The vault has no owner, no pause and no upgrade path. Allowed tokens, the per-drop maximum and minimum are fixed in its constructor.

API

The site reads everything from a public API. All responses are JSON and every number traces back to a block or a transaction.

EndpointReturns
/api/v1/statsdrops, claims, volume, last drop, current block
/api/v1/drops/recentlatest drops with transaction links
/api/v1/announcements?from=0every vault announcement, for scanning in your own code
/api/v1/balance/:addressvault balance and nonce of a one-time address
/api/v1/meta/:addressthe Nook registered for a wallet, if any
/api/v1/relay/quote?token=current relayer fee
POST /api/v1/relaysubmits a signed claim and returns the transaction hash

Privacy limits

  • The sender, the amount, the token and the time of each drop are public.
  • Claiming to an address already tied to you links that drop to you. Use a fresh address and move funds in amounts that do not stand out.
  • A drop right after a public request, or an unusual amount, can be matched by timing alone.
  • The claim destination and time are public, and the person who paid you knows the one-time address.
  • Claiming several drops to the same address links them together.
  • Quiet Claim shows the relayer that drop's one-time address, its destination and your IP address.
  • Balance checks go to a public RPC (publicnode), which sees your IP and the addresses checked.
  • Registering on ERC-6538 makes it public that your wallet uses a Nook, though not which drops are yours.
  • USDG is an upgradeable token whose issuer can freeze addresses, including the vault.
  • The vault is not audited. It was reviewed internally and tested against a mainnet fork. Keep amounts small.