[0] NETWORK
chain data via mempool.space — deposits, fees and broadcast are live
[1] KEYGEN // seed phrase or xpriv restore
or paste an existing mnemonic / xpriv backup:
[2] POLICY // define where coins are allowed to go
policy v0 grammar: address=<destination> — every output of a spend must pay this address (or change back to the vault).
[3] DEPOSITS // watch the vault on mempool.space
send coins to the vault address, then scan. no manual txid hunting.
manual entry / custom esplora endpoint (regtest, local node, testnet3)
[4] BUILD PSBT // spend the selected deposit
fee rate
sat/vB
[5] VERIFY // anyone can audit — no keys needed
[6] SIGN & BROADCAST // only the committed seed can do this
re-verifies the policy, proves the loaded seed is the vault's leaf signer, then script-path signs.
[i] HOW IT WORKS
t = tagged_hash("northpol/policy/v0", policy)
P = H + t*G (H = BIP341 NUMS point, no known dlog)
descriptor = tr(P, pk(signer))
the policy commitment IS the internal key, which is provably
unspendable — the ONLY way out is the miniscript script path.
the policy text travels in a PSBT proprietary field (prefix "northpol").
verifier: extract policy -> recompute the NUMS point P -> must equal
the input's internal key -> P2TR(P, merkle root) must equal
the utxo's scriptPubKey -> check outputs comply.
a swapped policy, a diverted output, or a stripped field all fail loudly.
attestation, not consensus enforcement: the leaf signer can still
misbehave, but no one can forge what the policy WAS when the vault
was funded, and no hidden key path exists around the script tree.