Module satisfy

Source
Expand description

§Satisfaction and Dissatisfaction

Traits and implementations to support producing witnesses for Miniscript scriptpubkeys.

Structs§

Satisfaction
A (dis)satisfaction of a Miniscript fragment

Enums§

Witness
A witness, if available, for a Miniscript fragment

Traits§

Satisfier
Trait describing a lookup table for signatures, hash preimages, etc. Every method has a default implementation that simply returns None on every query. Users are expected to override the methods that they have data for.

Functions§

elementssig_from_rawsig
Helper function to create ElementsSig from Rawsig Useful for downstream when implementing Satisfier. Returns underlying secp if the Signature is not of correct format
elementssig_to_rawsig
Convert to raw sig

Type Aliases§

ElementsSig
Type alias for a signature/hashtype pair
Preimage32
Type alias for 32 byte Preimage.