Module bitcoin::util::misc [] [src]

Miscellaneous functions

Various utility functions

Functions

consume_err

Dump an error message to the screen TODO all uses of this should be replaced with some sort of logging infrastructure

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.