UNPKG

@thorwallet/xchain-bitcoincash

Version:

Custom bitcoincash client and utilities used by XChainJS clients

28 lines (27 loc) 777 B
/// <reference types="node" /> export declare type KeyPair = { getAddress(index: number): Promise<string>; sign(hash: Buffer, lowR?: boolean): Buffer; getPublicKeyBuffer?(): Buffer; toWIF(): string; getNetwork(): Network; }; export declare type Transaction = { toHex(): string; }; export declare type TransactionBuilder = { inputs: any[]; sign(vin: number, keyPair: KeyPair, redeemScript?: Buffer, hashType?: number, witnessValue?: number, witnessScript?: Buffer, signatureAlgorithm?: string): void; build(): Transaction; }; export declare type Network = { messagePrefix: string; bech32: string; bip32: { public: number; private: number; }; pubKeyHash: number; scriptHash: number; wif: number; };