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
static
artifact:Artifact
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:15
Inherited from
stateType?
static
optional
stateType:string
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:16
Inherited from
Methods
getTxHashFromCompactTxHashPreimage()
static
getTxHashFromCompactTxHashPreimage(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()
static
getTxHashFromHashRootTxHashPreimage(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()
static
loadArtifact(artifact
): typeofSmartContractLib
Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:18
Parameters
artifact
Returns
typeof SmartContractLib