Expand description
Scheme for deriving deterministic secret keys
DerivableSecret
represents a secret key that can be used to derive child
secret keys. A root key secret can be used to derives child
keys from it, which can have child keys derived from them, recursively.
The DerivableSecret
struct in this implementation is only used for
deriving secret keys, not public keys. This allows supporting multiple
crypto schemes for the different cryptographic operations used across the
different modules:
- secp256k1 for bitcoin deposit addresses, redeem keys and contract keys for lightning,
- bls12-381 for the guardiansβ threshold signature scheme,
- chacha20-poly1305 for symmetric encryption used for backups.
Structs§
- Describes a child key of a
DerivableSecret
- A secret that can have child-subkey derived from it.
Constants§
- BLS12_
381_ πTAG - CHACH
A20_ πPOLY1305 - CHILD_
TAG π - RAW_
BYTES π - SECP256
K1_ πTAG
Functions§
- tagged_
derive π