bsv.Transaction.Sighash
scrypt-ts / bsv / Transaction / Sighash
Namespace: Sighash
bsv.Transaction.Sighash
Table of contents
Functions
Functions
sighash
▸ sighash(transaction
, sighashType
, inputNumber
, subscript
, satoshisBN
, flags?
): Buffer
Parameters
Name | Type |
---|---|
transaction | Transaction |
sighashType | number |
inputNumber | number |
subscript | Script |
satoshisBN | BN |
flags? | number |
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:870
sighashPreimage
▸ sighashPreimage(transaction
, sighashType
, inputNumber
, subscript
, satoshisBN
, flags?
): Buffer
Parameters
Name | Type |
---|---|
transaction | Transaction |
sighashType | number |
inputNumber | number |
subscript | Script |
satoshisBN | BN |
flags? | number |
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:862
sign
▸ sign(transaction
, privateKey
, sighashType
, inputIndex
, subscript
, satoshisBN
, flags?
): Signature
Parameters
Name | Type |
---|---|
transaction | Transaction |
privateKey | PrivateKey |
sighashType | number |
inputIndex | number |
subscript | Script |
satoshisBN | BN |
flags? | number |
Returns
Defined in
node_modules/bsv/index.d.ts:878
verify
▸ verify(transaction
, signature
, publicKey
, inputIndex
, subscript
, satoshisBN
, flags?
): boolean
Parameters
Name | Type |
---|---|
transaction | Transaction |
signature | Signature |
publicKey | PublicKey |
inputIndex | number |
subscript | Script |
satoshisBN | BN |
flags? | number |
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:887