Skip to main content

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

NameType
transactionTransaction
sighashTypenumber
inputNumbernumber
subscriptScript
satoshisBNBN
flags?number

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:870


sighashPreimage

sighashPreimage(transaction, sighashType, inputNumber, subscript, satoshisBN, flags?): Buffer

Parameters

NameType
transactionTransaction
sighashTypenumber
inputNumbernumber
subscriptScript
satoshisBNBN
flags?number

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:862


sign

sign(transaction, privateKey, sighashType, inputIndex, subscript, satoshisBN, flags?): Signature

Parameters

NameType
transactionTransaction
privateKeyPrivateKey
sighashTypenumber
inputIndexnumber
subscriptScript
satoshisBNBN
flags?number

Returns

Signature

Defined in

node_modules/bsv/index.d.ts:878


verify

verify(transaction, signature, publicKey, inputIndex, subscript, satoshisBN, flags?): boolean

Parameters

NameType
transactionTransaction
signatureSignature
publicKeyPublicKey
inputIndexnumber
subscriptScript
satoshisBNBN
flags?number

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:887