UNPKG

@btc-vision/transaction

Version:

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

33 lines 976 B
import { type Bytes32, type Network, type Signer } from '@btc-vision/bitcoin'; import { type UniversalSigner } from '@btc-vision/ecpair'; /** * Tweak settings */ export interface TweakSettings { /** * The network to use */ readonly network?: Network; /** * The tweak hash to use */ tweakHash?: Bytes32; } /** * Type guard to check if a Signer is a UniversalSigner (has privateKey). */ export declare function isUniversalSigner(signer: Signer): signer is UniversalSigner; /** * Class for tweaking signers * @class TweakedSigner */ export declare class TweakedSigner { /** * Tweak a signer * @param {UniversalSigner} signer - The signer to tweak (must have privateKey) * @param {TweakSettings} opts - The tweak settings * @returns {UniversalSigner} - The tweaked signer */ static tweakSigner(signer: UniversalSigner, opts?: TweakSettings): UniversalSigner; } //# sourceMappingURL=TweakedSigner.d.ts.map