bsv.Transaction.Input.PublicKeyHash
scrypt-ts / bsv / Transaction / Input / PublicKeyHash
Class: PublicKeyHash
Transaction.Input.PublicKeyHash
Hierarchy
↳
PublicKeyHash
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new PublicKeyHash(params
)
Parameters
Name | Type |
---|---|
params | object |
Inherited from
Defined in
node_modules/bsv/index.d.ts:833
Properties
output
• Optional
output: Output
Inherited from
Defined in
node_modules/bsv/index.d.ts:832
outputIndex
• Readonly
outputIndex: number
Inherited from
Defined in
node_modules/bsv/index.d.ts:829
prevTxId
• Readonly
prevTxId: Buffer
Inherited from
Defined in
node_modules/bsv/index.d.ts:828
script
• Readonly
script: Script
Inherited from
Defined in
node_modules/bsv/index.d.ts:831
sequenceNumber
• sequenceNumber: number
Inherited from
Defined in
node_modules/bsv/index.d.ts:830
Methods
getPreimage
▸ getPreimage(tx
, inputIndex
, sigtype?
, isLowS?
): any
Parameters
Name | Type |
---|---|
tx | Transaction |
inputIndex | number |
sigtype? | number |
isLowS? | boolean |
Returns
any
Inherited from
Defined in
node_modules/bsv/index.d.ts:837
getSignatures
▸ getSignatures(tx
, privateKey
, inputIndex
, sigtype?
): any
Parameters
Name | Type |
---|---|
tx | Transaction |
privateKey | PrivateKey |
inputIndex | number |
sigtype? | number |
Returns
any
Inherited from
Defined in
node_modules/bsv/index.d.ts:836
isValidSignature
▸ isValidSignature(tx
, sig
): boolean
Parameters
Name | Type |
---|---|
tx | Transaction |
sig | any |
Returns
boolean
Inherited from
Defined in
node_modules/bsv/index.d.ts:834
setScript
▸ setScript(script
): PublicKeyHash
Parameters
Name | Type |
---|---|
script | Script |
Returns
Inherited from
Defined in
node_modules/bsv/index.d.ts:835