BSV-ex v0.2.2 BSV.Transaction.Signature View Source
Module for signing transactions.
Link to this section Summary
Functions
Generates a transaction digest for signing, using the given sighash type.
Signs the given transaction input with the given private key.
Link to this section Functions
Link to this function
sighash(tx, input, sighash_type)
View Sourcesighash(BSV.Transaction.t(), BSV.Transaction.Input.t(), integer()) :: binary()
Generates a transaction digest for signing, using the given sighash type.
Link to this function
sign_input(tx, input, arg, options \\ [])
View Sourcesign_input(BSV.Transaction.t(), BSV.Transaction.Input.t(), binary(), keyword()) :: {binary(), integer()}
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`.