@zlattice/lattice-js
Version:
Lattice blockchain TypeScript SDK with dual module support (CJS + ESM)
13 lines • 664 B
TypeScript
import type { KeyPair } from "../common/index.js";
import type { CryptoService, EncodeFunc } from "./crypto.js";
export declare class NIST implements CryptoService {
generateKeyPair(): KeyPair;
compressPublicKey(publicKey: Buffer | string): Buffer;
publicKeyToAddress(publicKey: Buffer | string): string;
getPublicKeyFromPrivateKey(privateKey: string, compressed?: boolean): string;
hash(data: Buffer): Buffer;
encodeHash(encodeFunc: EncodeFunc): Buffer;
sign(data: Buffer, privateKey: string): string;
verify(data: Buffer, signature: string, uncompressedPublicKey: string): boolean;
}
//# sourceMappingURL=crypto-secp256k1.d.ts.map