@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
22 lines (21 loc) • 1.08 kB
TypeScript
import { Network, Taptree } from '@btc-vision/bitcoin';
import { ChallengeSolution } from '../epoch/ChallengeSolution.js';
import { Feature, Features } from '../generators/Features.js';
export interface ContractAddressVerificationParams {
readonly deployerPubKey: Buffer;
readonly contractSaltPubKey: Buffer;
readonly originalSalt: Buffer;
readonly bytecode: Buffer;
readonly challenge: ChallengeSolution;
readonly priorityFee: bigint;
readonly features: Feature<Features>[];
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;
}