Crate simplicity
source ·Re-exports§
pub extern crate bitcoin;
pub extern crate byteorder;
pub extern crate elements;
pub extern crate hashes;
pub extern crate hex;
pub use crate::policy::sighash;
pub use crate::policy::Policy;
pub use crate::policy::Preimage32;
pub use crate::policy::Satisfier;
pub use crate::policy::SimplicityKey;
pub use crate::policy::ToXOnlyPubkey;
pub use crate::policy::Translator;
pub use crate::bit_machine::BitMachine;
pub use crate::node::CommitNode;
pub use crate::node::ConstructNode;
pub use crate::node::RedeemNode;
pub use crate::node::WitnessNode;
pub use simplicity_sys as ffi;
Modules§
- Simplicity Execution
- General DAG iteration utilities
- Decoding
- Encoding
- The Simplicity Human-Readable Encoding
- Simplicity jets
- Simplicity Program Nodes
- Function-like Expression Language
- Types and Type Inference
Macros§
- Convenience macro for wrappers of
Midstate
.
Structs§
- Annotated Merkle root
- Bitwise iterator formed from a wrapped bytewise iterator. Bytes are interpreted big-endian, i.e. MSB is returned first
- Bitwise writer formed by wrapping a bytewise
io::Write
. Bits are written in big-endian order. Bytes are filled with zeroes for padding. - Commitment Merkle root
- CPU cost of a Simplicity expression.
- Attempted to read from a bit iterator, but there was no more data
- 512-bit opaque blob of data used to seed
Fail
nodes - Identity Merkle root (first pass)
- Identity Merkle root
- Bounds on the resources required by a node during execution on the Bit Machine
- Type Merkle root
Enums§
- Error type for simplicity
- Value of some type.
Functions§
- Encode a positive integer to bits.
- Encode a value to bits.
- Encode witness data to bits.
- Return the version of Simplicity leaves inside a tap tree.
- Write the result of a bit operation into a byte vector and return the vector.