minauth
Version:
A TypeScript library for building authentication systems on top of the Mina blockchain and other zero-knowledge proofs solutions.
18 lines • 545 B
JavaScript
import { z } from 'zod';
/**
* A zod schema against which o1js JsonProof objects can be validated.
*/
export const JsonProofSchema = z.object({
publicInput: z.array(z.string()),
publicOutput: z.array(z.string()),
maxProofsVerified: z.union([z.literal(0), z.literal(1), z.literal(2)]),
proof: z.string()
});
/**
* A zod schema for proof objects that can be verified by the plugin server.
*/
export const MinAuthPluginInputSchema = z.object({
plugin: z.string(),
input: z.unknown()
});
//# sourceMappingURL=proof.js.map