UNPKG

aa-schnorr-multisig-sdk

Version:

Account Abstraction Schnorr Multi-Signatures SDK

17 lines (16 loc) 744 B
import type { Key, PublicNonces, SignatureOutput } from "../types"; import type { HashFunction } from "../core/types"; import { Schnorrkel } from "./Schnorrkel"; export declare class SchnorrSigner extends Schnorrkel { #private; constructor(_privKey: Uint8Array); getAddress(): string; getPubKey(): Key; getPubNonces(): PublicNonces; generatePubNonces(): PublicNonces; hasNonces(): boolean; signMultiSigMsg(msg: string, publicKeys: Key[], publicNonces: PublicNonces[]): SignatureOutput; signMultiSigHash(hash: string, publicKeys: Key[], publicNonces: PublicNonces[]): SignatureOutput; signMessage(msg: string, hashFn?: HashFunction | null): SignatureOutput; signHash(hash: string): SignatureOutput; }