Module lightning_signer::util::crypto_utils
source · Expand description
Cryptographic utilities
Functions
- Convert a Bitcoin signature bytes, with the specified EcdsaSighashType, to [Signature]
- Generate a seed
- derive a secret from another secret using HKDF-SHA256
- Use the provided seed, or generate a random one
- Convert a [Signature] to Bitcoin signature bytes, with SIGHASH_ALL
- Hash the serialized heartbeat message for signing
- Convert a [Signature] to Bitcoin signature bytes, with SIGHASH_ALL