anon-identity
Version:
Decentralized identity framework with DIDs, Verifiable Credentials, and privacy-preserving selective disclosure
10 lines • 533 B
TypeScript
import { KeyPair } from '../types';
export declare class CryptoService {
static generateKeyPair(): Promise<KeyPair>;
static getPublicKeyFromPrivate(privateKey: Uint8Array): Promise<Uint8Array>;
static sign(message: Uint8Array, privateKey: Uint8Array): Promise<Uint8Array>;
static verify(signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): Promise<boolean>;
static bytesToHex(bytes: Uint8Array): string;
static hexToBytes(hex: string): Uint8Array;
}
//# sourceMappingURL=crypto-browser.d.ts.map