TxProof
bitcoinjs-lib / TxProof
Class: TxProof
Defined in: packages/scrypt-ts-btc/src/smart-contract/builtin-libs/txProof.ts:24
Library for computing the transaction hash of preimage.
Onchain
Extends
Constructors
new TxProof()
new TxProof(...
args):TxProof
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:29
Parameters
args
...SupportedParamType[]
Returns
Inherited from
Properties
args
args:
any[] =[]
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:28
Inherited from
artifact
staticartifact:Artifact
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:15
Inherited from
stateType?
staticoptionalstateType:string
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:16
Inherited from
Methods
getTxHashFromCompactTxHashPreimage()
staticgetTxHashFromCompactTxHashPreimage(preimage):ByteString
Defined in: packages/scrypt-ts-btc/src/smart-contract/builtin-libs/txProof.ts:31
Calculate tx hash from CompactTxHashPreimage
Parameters
preimage
CompactTxHashPreimage
Returns
tx hash
getTxHashFromHashRootTxHashPreimage()
staticgetTxHashFromHashRootTxHashPreimage(preimage):ByteString
Defined in: packages/scrypt-ts-btc/src/smart-contract/builtin-libs/txProof.ts:77
Calculate tx hash from HashRootTxHashPreimage
Parameters
preimage
HashRootTxHashPreimage
Returns
tx hash
loadArtifact()
staticloadArtifact(artifact): typeofSmartContractLib
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:18
Parameters
artifact
Returns
typeof SmartContractLib