Module decode

Source
Expand description

§Decoding

Functionality to decode Simplicity programs. Refer to crate::encode for information on the encoding.

Enums§

Error
Decoding error

Functions§

decode_expression
decode_natural
Decode a natural number from bits. If a bound is specified, then the decoding terminates before trying to decode a larger number.
decode_power_of_2
Decode a value from bits, of the form 2^exp