Implements a relative timelock script that requires all specified pubkeys to sign after the relative timelock has expired. The timelock can be specified in blocks or seconds.

This is the standard exit closure and it is also used for the sweep closure in vtxo trees.

CHECKSEQUENCEVERIFY DROP CHECKSIG

const csvMultisigTapscript = CSVMultisigTapscript.encode({ timelock: { type: "blocks", value: 144 }, pubkeys: [new Uint8Array(32), new Uint8Array(32)] });

Type Aliases

Params
Type

Functions

decode
encode
is