Private Address Keys
Private receiving addresses follow the stealth-address model of ERC-5564, with hierarchical key derivation (BIP-32). The cryptographic core is lib/stealthcore.js, written from the public specifications and checked against fixed reference vectors.
1. Keys
The client's device derives a seed and, from it, two private keys:
- a spending key, which never leaves the browser and is kept in memory only while the private addresses are unlocked;
- a viewing key.
For accounts opened with a passkey, the seed comes from the passkey itself (the WebAuthn PRF extension). For accounts opened with a wallet, the seed is the wallet's signature of a fixed message; with a PIN, the signed message also carries a secret derived from the wallet and the PIN, so that a phishing site that obtains a signature of the plain message cannot derive the keys.
2. What the server holds
The server holds a viewing node derived from the viewing key, stored encrypted. With it the server can generate the client's next private address and find payments to them. It cannot derive the spending key and cannot move funds.
The first registration of these keys requires owner proof. Later registrations are only compared with the first ones.
3. Addresses
Each private address is a Safe account owned by a one-time key that only the spending key can derive. The address is known before the account exists on the network, so a payer can send to it at once.
4. Moving funds
When the client chooses «Move to account», the browser derives the one-time key, builds an operation that sends the euros on that address to the client's main account, shows it in plain words, and signs it. Today this handles euros (EURe) only.
5. Recovery key
Because the spending key comes from the passkey, losing the passkey loses the key. The client can download the spending key sealed with a passphrase of at least 12 characters. Montelvay receives neither the file nor the passphrase.
6. What an observer sees
Each private address is an ordinary account on a public blockchain. An observer sees the payment to that address and its move to another account, but cannot tell from the addresses alone that two private addresses belong to the same client. Private receiving does not make a payment invisible.