Expand description
Helper functions for converting between byte, word and hex string representations.
Enums§
- From
HexError - The error type for decoding a hex string into
Vec<u8>or[u8; N].
Functions§
- bool_
from_ word - Convert a
Wordto itsboolrepresentation. - bytes_
from_ word - Convert a
Wordto its bytes. - hex_
str_ from_ words - Convert a slice of
Words to a hex string. - u8_
32_ from_ word_ 4 - A common conversion for 32-byte hashes and other addresses.
- u8_
64_ from_ word_ 8 - A common conversion for 64-byte signatures.
- word_
4_ from_ u8_ 32 - A common conversion for 32-byte hashes and other addresses.
- word_
8_ from_ u8_ 64 - A common conversion for 64-byte signatures.
- word_
from_ bytes - Convert a fixed array of bytes to a
Word. - word_
from_ bytes_ slice - Convert a slice of bytes to a
Word. - words_
from_ hex_ str - Convert a hex string slice to a
Vec<Word>.