Module revault_tx::scripts[][src]

Expand description

Revault Miniscript descriptors

Miniscript descriptors compilation and handling for policies specific to the Revault architecture.

We use miniscript in order to “safely” compile, derive, and satisfy Scripts depending on the setup configuration (ie the number of stakeholders, the number of fund managers, and the relative timelock) for all script but the (unknown) Emergency one.

NOTE: the compilation functions are not safe to reuse after initial set up, as the returned descriptors are non-deterministically compiled from an abstract policy. Backup the output Miniscript descriptors instead.

Structs

A generalistic (with wildcard xpubs) CPFP miniscript descriptor.

A generalistic (with wildcard xpubs) deposit Miniscript descriptor.

A concrete (with raw public keys) CPFP miniscript descriptor.

A concrete (with raw public keys) deposit Miniscript descriptor.

A public key used in derived descriptors

A concrete (with raw public keys) Unvault miniscript descriptor.

The “Emergency address”, it’s kept obfuscated for the entire duration of the vault and is necessarily a v0 P2WSH

A generalistic (with wildcard xpubs) Unvault miniscript descriptor.

Constants

Flag applied to the nSequence and CSV value before comparing them.