simplicity/policy/mod.rs
1// SPDX-License-Identifier: CC0-1.0
2
3//! # Function-like Expression Language
4//! This language is similar to policy language in miniscript, but
5//! whose target is simplicity instead of bitcoin Script. Policy
6//!
7//! # Simplicity Script Policies
8//!
9//! Tools for representing simplicity programs as spending policies.
10//! These may be compiled to Simplicity programs.
11//!
12//! The format represents public keys abstractly to allow wallets to replace
13//! these with BIP32 paths, pay-to-contract instructions, etc.
14//!
15
16mod ast;
17mod error;
18mod key;
19mod satisfy;
20mod serialize;
21pub mod sighash;
22
23pub use ast::Policy;
24pub use error::Error;
25pub use key::{SimplicityKey, ToXOnlyPubkey, Translator};
26pub use satisfy::{Preimage32, Satisfier, SatisfierError};