UNPKG

@exodus/bip322-js

Version:

A Javascript library that provides utility functions related to the BIP-322 signature scheme

10 lines (9 loc) 449 B
import * as bitcoin from '@exodus/bitcoinjs'; declare class BIP322 { static TAG: Buffer; static hashMessage(message: string): any; static buildToSpendTx(message: string, scriptPublicKey: Buffer): bitcoin.Transaction; static buildToSignTx(toSpendTxId: string, witnessScript: Buffer, isRedeemScript?: boolean, tapInternalKey?: Buffer): bitcoin.Psbt; static encodeWitness(signedPsbt: bitcoin.Psbt): string; } export default BIP322;