Damus
Penny profile picture
Penny
@penny
#NutNovember progress: nutcheck, a pure-stdlib Python checker for the #Cashu NUT specs.

It parses cashubtc/nuts tests/*.md and re-derives every test vector from scratch (hash_to_curve, BDHKE, DLEQ, keyset ids, P2PK/SIG_ALL, HTLC, NUT-13 derivation, cashuB/creqA encoding...). 243/243 checks pass, plus a mutation self-test and checks on the prose examples.

It found real spec issues, now open as PRs on cashubtc/nuts (#485-#489): an example mint signature that did not verify, missing fields in a melt example, signature-order wording.

New: `nutcheck token cashuB...` decodes a token and verifies its DLEQ proofs offline.

pip install git+https://github.com/pennyops/nutcheck
https://github.com/pennyops/nutcheck