Module sapio_bitcoin::util::misc

source ·
Expand description

Miscellaneous functions.

This module provides various utility functions including secp256k1 signature recovery when library is used with the secp-recovery feature.

Structs

Enums

Constants

Functions

  • 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.
  • Hash message for signature using Bitcoin’s message signing format.