UNPKG

minauth

Version:

A TypeScript library for building authentication systems on top of the Mina blockchain and other zero-knowledge proofs solutions.

20 lines (19 loc) 397 B
export type AuthResponse = { verificationResult: VerificationResult; plugin: string; output: unknown; }; /** * TODO: A result of a proof verification. */ type VerificationResult = { __tag: 'success'; output: unknown; } | { __tag: 'failed'; error: string; }; export default class AuthMapper { requestAuth(authRequestBody: any): Promise<AuthResponse>; } export {};