BSV.Tokens.TokenInput (bsv_sdk v1.4.0)

Copy Markdown View Source

A token input for STAS 3.0 spend operations.

The signing_key field accepts a BSV.Tokens.SigningKey.t(). For backward compatibility, private_key is still accepted but deprecated.

Summary

Functions

Resolve the effective signing key.

Types

t()

@type t() :: %BSV.Tokens.TokenInput{
  locking_script: BSV.Script.t(),
  private_key: BSV.PrivateKey.t() | nil,
  satoshis: non_neg_integer(),
  signing_key: BSV.Tokens.SigningKey.t(),
  txid: binary(),
  vout: non_neg_integer()
}

Functions

resolve_signing_key(arg1)

@spec resolve_signing_key(t()) :: BSV.Tokens.SigningKey.t()

Resolve the effective signing key.