BSV.Tokens.Template.StasBtgCheckpoint (bsv_sdk v1.5.1)

Copy Markdown View Source

STAS-BTG checkpoint unlocking script template (Path B — Checkpoint attestation).

Produces unlocking scripts: <sig_owner> <pubkey_owner> <sig_issuer> <pubkey_issuer> OP_FALSE

Summary

Functions

Estimated checkpoint unlocking script length in bytes.

Sign a STAS-BTG input using Path B (checkpoint attestation).

Create a STAS-BTG Path B (checkpoint attestation) unlocker from owner and issuer private keys.

Types

t()

@type t() :: %BSV.Tokens.Template.StasBtgCheckpoint{
  issuer_private_key: BSV.PrivateKey.t(),
  owner_private_key: BSV.PrivateKey.t(),
  sighash_flag: non_neg_integer()
}

Functions

estimate_length(template, tx, input_index)

Estimated checkpoint unlocking script length in bytes.

sign(stas_btg_checkpoint, tx, input_index)

Sign a STAS-BTG input using Path B (checkpoint attestation).

unlock(owner_key, issuer_key, opts \\ [])

@spec unlock(BSV.PrivateKey.t(), BSV.PrivateKey.t(), keyword()) :: t()

Create a STAS-BTG Path B (checkpoint attestation) unlocker from owner and issuer private keys.