Module policy

Module policy 

Source
Expand description

§Function-like Expression Language

This language is similar to policy language in miniscript, but whose target is simplicity instead of bitcoin Script. Policy

§Simplicity Script Policies

Tools for representing simplicity programs as spending policies. These may be compiled to Simplicity programs.

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

Modules§

sighash

Enums§

Error
Policy
Policy that expresses spending conditions for Simplicity.
SatisfierError

Traits§

Satisfier
Lookup table for signatures, hash preimages, etc.
SimplicityKey
Public key which can be converted to a hash type.
ToXOnlyPubkey
Public key which can be converted to a (x-only) public key which can be used in Simplicity.
Translator
Object which can translate one key type to another, including all associated hashes.

Type Aliases§

Preimage32
Type alias for 32-byte preimage.