UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

19 lines (18 loc) 895 B
import { Network, Taptree } from '@btc-vision/bitcoin'; export interface ContractAddressVerificationParams { readonly deployerPubKey: Buffer; readonly contractSaltPubKey: Buffer; readonly originalSalt: Buffer; readonly bytecode: Buffer; readonly preimage: Buffer; readonly priorityFee: bigint; readonly calldata?: Buffer; readonly network?: Network; } export declare class TapscriptVerificator { private static readonly TAP_SCRIPT_VERSION; static getContractAddress(params: ContractAddressVerificationParams): string | undefined; static verifyControlBlock(params: ContractAddressVerificationParams, controlBlock: Buffer): boolean; static getContractSeed(deployerPubKey: Buffer, bytecode: Buffer, saltHash: Buffer): Buffer; static generateAddressFromScript(params: ContractAddressVerificationParams, scriptTree: Taptree): string | undefined; }