3 Commits

Author SHA1 Message Date
Jon Staab a8a57a3d77 Add filters chapter 2026-04-22 09:33:33 -07:00
Jon Staab b96ad44d3a Add addresses chapter 2026-04-17 16:43:56 -07:00
Jon Staab 5364854881 Add keys chapter
Introduces PublicKey and SecretKey as distinct type-safe wrappers around
secp256k1, with hex and NIP-19 bech32 (npub/nsec) encoding. SecretKey has
a redacted Debug impl and no Display to reduce accidental leakage; it
exposes material only through explicit to_hex / to_nsec. FromStr on both
types auto-detects hex vs. bech32. Eight round-trip tests cover encoding,
auto-detection, prefix validation, debug redaction, and generation.
2026-04-13 20:19:45 -07:00