UNPKG

433 BTypeScriptView Raw
1/// <reference types="node" />
2import { IKeyPair } from "../interfaces";
3export declare class Hash {
4 static signECDSA(hash: Buffer, keys: IKeyPair): string;
5 static verifyECDSA(hash: Buffer, signature: Buffer | string, publicKey: Buffer | string): boolean;
6 static signSchnorr(hash: Buffer, keys: IKeyPair): string;
7 static verifySchnorr(hash: Buffer, signature: Buffer | string, publicKey: Buffer | string): boolean;
8}