[][src]Module miniscript::policy

Script Policies

Tools for representing Bitcoin scriptpubkeys as abstract spending policies. These may be compiled to Miniscript, which contains extra information to describe the exact representation as Bitcoin script.

The format represents EC public keys abstractly to allow wallets to replace these with BIP32 paths, pay-to-contract instructions, etc.

Re-exports

pub use self::concrete::Policy as Concrete;
pub use self::semantic::Policy as Semantic;

Modules

concrete

Concrete Policies

semantic

Abstract Policies

Traits

Liftable

Trait describing script representations which can be lifted into an abstract policy, by discarding information. After Lifting all policies are converted into KeyHash(Pk::HasH) to maintain the following invariant: Lift(Concrete) == Concrete -> Miniscript -> Script -> Miniscript -> Semantic