-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
documentationRelates to documentationRelates to documentation
Description
add info on all the different sighash flags to docs, related to #310
currently the docs only have the following info under sdk/signature-templates
Advanced Usage
HashType
The default
hashtypeisHashType.SIGHASH_ALL | HashType.SIGHASH_UTXOSbecause this is the most secure option for smart contract use cases.export enum HashType { SIGHASH_ALL = 0x01, SIGHASH_NONE = 0x02, SIGHASH_SINGLE = 0x03, SIGHASH_UTXOS = 0x20, SIGHASH_ANYONECANPAY = 0x80, }
the sig type does not include any of this info
Transaction Signature
sig: Byte sequence representing a transaction signature. Generally 65 bytes long.
and neither does checksig
checkSig()
bool checksig(sig s, pubkey pk)Checks that transaction signature
sis valid for the current transaction and matches with public keypk.
Metadata
Metadata
Assignees
Labels
documentationRelates to documentationRelates to documentation