Skip to content

covenant_id (Func)

Compute the covenant id for a set of authorizing outputs.

The id commits to the authorizing outpoint and the authorizing outputs; each output's index is its position in auth_outputs (0, 1, 2, ...).

PARAMETER DESCRIPTION
outpoint

The authorizing transaction outpoint.

TYPE: TransactionOutpoint

auth_outputs

The authorizing outputs, in order.

TYPE: Sequence[TransactionOutput]

RETURNS DESCRIPTION
Hash

The computed covenant id.

TYPE: Hash