Skip to content
LogoLogo

Keys and addresses

All keys live on Grumpkin, whose base field is BN254's scalar field, so point coordinates are ordinary field elements and hash directly. Grumpkin's scalar field is larger than the base field, so any field element lifts injectively to a scalar; circuits carry scalars as two 128-bit limbs (lo, hi).

ak   = sk · G                       authorization key
nk   = H(NK, sk_lo, sk_hi)          nullifier key
ivk  = H(IVK, ak.x, ak.y, nk)       incoming viewing key
pk_d = ivk · G                      payment address (v1: no diversifier)

A spend proves knowledge of sk and recomputes pk_d from it, so no separate spend signature is needed inside the wallet circuits. Where a party must consent without proving (recipient consent on accept, sender on reclaim, FI vouching in W), it signs with Schnorr over Grumpkin whose challenge is Poseidon2, so no second hash enters any circuit:

R = r · G
e = H(SCHNORR, R.x, R.y, pk.x, pk.y, msg)
s = r + e · sk                      signature = (R, s)
verify: s · G == R + e · pk

Per FI: a messaging key pair (msk, mpk) that signs wrapper publics and registry writes, and an encryption key pair (esk, epk) that receives envelopes. msk is meant for an HSM; proving may be outsourced (§4.8). Diversified addresses are deferred; pk_d is a single address per ivk in v1. Reference: reference/src/keys.rs, protocol/lib/core/src/keys.nr.