@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
23 lines • 1.27 kB
TypeScript
import { Network, PublicKey, Taptree } from '../../node_modules/@btc-vision/bitcoin/browser/index.js';
import { IChallengeSolution } from '../epoch/interfaces/IChallengeSolution.js';
import { Feature, Features } from '../generators/Features.js';
export interface ContractAddressVerificationParams {
readonly deployerPubKey: PublicKey;
readonly contractSaltPubKey: Uint8Array;
readonly originalSalt: Uint8Array;
readonly bytecode: Uint8Array;
readonly challenge: IChallengeSolution;
readonly priorityFee: bigint;
readonly features: Feature<Features>[];
readonly calldata?: Uint8Array;
readonly network?: Network;
}
export declare class TapscriptVerificator {
private static readonly TAP_SCRIPT_VERSION;
static getContractAddress(params: ContractAddressVerificationParams): string | undefined;
static verifyControlBlock(params: ContractAddressVerificationParams, controlBlock: Uint8Array): boolean;
static getContractSeed(deployerPubKey: Uint8Array, bytecode: Uint8Array, saltHash: Uint8Array): Uint8Array;
static generateAddressFromScript(params: ContractAddressVerificationParams, scriptTree: Taptree): string | undefined;
private static buildScriptTree;
}
//# sourceMappingURL=TapscriptVerificator.d.ts.map