Module simplicity::encode
source · Expand description
§Encoding
Functionality to encode Simplicity programs. These programs are encoded bitwise rather than bytewise, so given a hex dump of a program it is not generally possible to read it visually the way you can with Bitcoin Script.
Structs§
- Shares nodes based on IMR, except for Hidden nodes, which are identified solely by the hash they contain
Functions§
- Encode a hash to bits.
- Encode a positive integer to bits.
- Encode a Simplicity program to bits, without witness data.
- Encode a value to bits.
- Encode witness data to bits.