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§
- Encode
Sharing - Shares nodes based on IHR, except for Hidden nodes, which are identified solely by the hash they contain
Functions§
- encode_
hash - Encode a hash to bits.
- encode_
natural - Encode a positive integer to bits.
- encode_
program - Encode a Simplicity program to bits, without witness data.
- encode_
value - Encode a value to bits.
- encode_
witness - Encode witness data to bits.