Module misc

Source
Expand description

Miscellaneous functions

Various utility functions

Constants§

BITCOIN_SIGNED_MSG_PREFIX
The prefix for signed messages using Bitcoin’s message signing protocol.

Functions§

hex_bytes
Convert a hexadecimal-encoded string to its corresponding bytes
script_find_and_remove
Search for needle in the vector haystack 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.