Module agora.script.Signature
Contains the signature definitions and the challenge routine.
Functions
Name | Description |
decodeSignature(bytes, sig_pair, pop_count)
|
Decodes the raw byte representation of a signature to its
Signature and SigHash parts, and validates the SigHash
to be one of the known flags or accepted combination of flags.
|
getChallenge(tx, sig_hash, input_idx, output_idx)
|
Gets the challenge hash for the provided transaction, input index,
and the type of SigHash. This cannot be folded into a sign routine
because it's also required during signature validation.
|
Structs
Name | Description |
SigPair
|
Contains the Signature and its associated SigHash
|
Enums
Name | Description |
SigHash
|
Used to select the behavior of the signature creation & validation algorithm
|