Module misc
Expand description
Miscellaneous functions.
This module provides various utility functions including secp256k1 signature
recovery when library is used with the secp-recovery
feature.
Structs§
- Message
Signature - A signature on a Bitcoin Signed Message.
Enums§
- Message
Signature Error - An error used for dealing with Bitcoin Signed Messages.
Constants§
- BITCOIN_
SIGNED_ MSG_ PREFIX - The prefix for signed messages using Bitcoin’s message signing protocol.
Functions§
- script_
find_ and_ remove - Search for
needle
in the vectorhaystack
and remove every instance of it, returning the number of instances removed. Loops through the vector opcode by opcode, skipping pushed data. - signed_
msg_ hash - Hash message for signature using Bitcoin’s message signing format.