Expand description
Tagged hashes for use in signature calculation and verification.
Structs§
- Tagged
Hash - A hash for use in a specific context by tweaking with a context-dependent tag as per BIP 340 and computed over the merkle root of a TLV stream to sign as defined in BOLT 12.
Enums§
- Sign
Error - Error when signing messages.
Traits§
- SignFn
- A function for signing a
TaggedHash.
Functions§
- sign_
message - Signs a
TaggedHashcomputed over the merkle root ofmessage’s TLV stream, checking if it can be verified with the suppliedpubkey. - verify_
signature - Verifies the signature with a pubkey over the given message using a tagged hash as the message digest.