Skip to main content

TxProof

bitcoinjs-lib v0.2.9-beta.16


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

TxProof

Inherited from

SmartContractLib.constructor

Properties

args

args: any[] = []

Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:28

Inherited from

SmartContractLib.args


artifact

static artifact: Artifact

Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:15

Inherited from

SmartContractLib.artifact


stateType?

static optional stateType: string

Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:16

Inherited from

SmartContractLib.stateType

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

CompactTxHashPreimage

Returns

ByteString

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

HashRootTxHashPreimage

Returns

ByteString

tx hash


loadArtifact()

static loadArtifact(artifact): typeof SmartContractLib

Defined in: packages/scrypt-ts-btc/src/smart-contract/smartContractLib.ts:18

Parameters

artifact

Artifact

Returns

typeof SmartContractLib

Inherited from

SmartContractLib.loadArtifact