UNPKG

@exodus/bip322-js

Version:

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

22 lines (21 loc) 802 B
import * as bitcoin from '@exodus/bitcoinjs'; import type { Signer as AssetSigner } from '@exodus/asset-types/src/signer'; export declare const createSigner: (encodedKey: string | Buffer, network: bitcoin.Network) => { signer: { getPublicKey: () => Promise<any>; sign: ({ data, signatureType, enc, tweak, extraEntropy }: { data: any; signatureType: any; enc: any; tweak: any; extraEntropy?: null | undefined; }) => Promise<any>; }; compressed: any; }; declare class Signer { #private; static signAsync(signerOrKey: string | Buffer | AssetSigner, address: string, message: string, network?: bitcoin.Network): Promise<any>; private static checkPubKeyCorrespondToAddress; } export default Signer;