UNPKG

@e280/authlocal

Version:

User-sovereign login system for everybody

7 lines (6 loc) 433 B
import { Keypair } from "./types.js"; export declare function unpackKey(key: string): Uint8Array<ArrayBuffer>; export declare function deriveId(secret: string): Promise<string>; export declare function generateKeypair(): Promise<Keypair>; export declare function sign(message: Uint8Array, secret: string): Promise<Uint8Array>; export declare function verify(message: Uint8Array, signature: Uint8Array, id: string): Promise<boolean>;