[][src]Module bitcoin_spv::utils

utils contains utility functions for working with bytestrings, including hex encoding and decoding.

Functions

deserialize_hex

Deserializes a hex string into a u8 array.

force_deserialize_hex

Deserialize a hex string into bytes. Panics if the string is malformatted.

reverse_endianness

Changes the endianness of a byte array. Returns a new, backwards, byte array.

serialize_hex

Serializes a u8 array into a hex string.

strip_0x_prefix

Strips the '0x' prefix off of hex string so it can be deserialized.