Architecture¶
Derivation path¶
Keys are derived following CIP-1852 using BIP32-Ed25519:
The derivation chain:
- BIP39 mnemonic (15 words) → seed entropy
- Seed → BIP32-Ed25519 root key
- Root key → account key (hardened derivation)
- Account key → payment key (soft derivation)
- Payment public key → Blake2b_224 hash → Shelley enterprise address
Signing¶
Transaction signing:
- Decode the hex-encoded CBOR into a Conway-era transaction body
- Compute the transaction body hash
- Sign the hash with the derived Ed25519 private key
- Attach the witness (public key + signature) to the transaction
- Re-encode as hex CBOR
Wallet file format¶
The wallet file stores only the mnemonic. All key material is derived at runtime from the mnemonic and discarded after use. This avoids persisting private key bytes on disk.