BSV-ex v0.2.3 BSV.Transaction.Signature View Source

Module for signing transactions.

Link to this section Summary

Link to this section Functions

Generates a transaction digest for signing, using the given sighash type.

Link to this macro

sighash_all?(sighash_type)

View Source (macro)
Link to this macro

sighash_anyone_can_pay?(sighash_type)

View Source (macro)
Link to this macro

sighash_forkid?(sighash_type)

View Source (macro)
Link to this macro

sighash_none?(sighash_type)

View Source (macro)
Link to this macro

sighash_single?(sighash_type)

View Source (macro)
Link to this function

sign_input(tx, input, arg, options \\ [])

View Source

Signs the given transaction input with the given private key.

Options

The accepted options are:

  • :sighash_type - Optionally specify the sighash type by passing an 8-bit integer. Defaults to SIGHASH_FORKID.