Skip to main content

ZkProofMathVerificationSchema

HardKAS SDK


HardKAS SDK / artifacts/src / ZkProofMathVerificationSchema

Variable: ZkProofMathVerificationSchema

const ZkProofMathVerificationSchema: ZodObject<{ claims: ZodRecord<ZodString, ZodString>; curve: ZodString; durationMs: ZodNumber; engine: ZodLiteral<"snarkjs-bn254">; experimental: ZodLiteral<true>; issues: ZodArray<ZodObject<{ code: ZodString; file: ZodOptional<ZodString>; message: ZodString; }, "strip", ZodTypeAny, { code?: string; file?: string; message?: string; }, { code?: string; file?: string; message?: string; }>, "many">; path: ZodString; proofSystem: ZodLiteral<"groth16">; schema: ZodLiteral<"hardkas.zkProofMathVerification.v1">; status: ZodEnum<["ZK_GROTH16_MATH_VERIFIED", "ZK_GROTH16_MATH_VALID_UNANCHORED_VK", "ZK_GROTH16_MATH_REJECTED", "ZK_GROTH16_VERIFIER_ERROR"]>; summary: ZodObject<{ binding: ZodEnum<["FIXTURE_COHERENCE_SELF_ATTESTED", "MATH_ONLY"]>; curve: ZodString; mathCheck: ZodEnum<["PASS", "FAIL", "ERROR"]>; pinnedVerificationKeyId: ZodOptional<ZodString>; proofHash: ZodString; proofSystem: ZodString; publicInputsHash: ZodString; publicSignals: ZodArray<ZodString, "many">; verificationKeyAnchor: ZodEnum<["CALLER_PIN", "PINNED_REGISTRY", "UNANCHORED"]>; verificationKeyFingerprint: ZodString; verificationKeyHash: ZodString; verificationKeyStrength: ZodEnum<["NO_KNOWN_WEAKNESS", "WEAK_TRAPDOOR_SUSPECTED"]>; }, "strip", ZodTypeAny, { binding?: "FIXTURE_COHERENCE_SELF_ATTESTED" | "MATH_ONLY"; curve?: string; mathCheck?: "PASS" | "FAIL" | "ERROR"; pinnedVerificationKeyId?: string; proofHash?: string; proofSystem?: string; publicInputsHash?: string; publicSignals?: string[]; verificationKeyAnchor?: "CALLER_PIN" | "PINNED_REGISTRY" | "UNANCHORED"; verificationKeyFingerprint?: string; verificationKeyHash?: string; verificationKeyStrength?: "NO_KNOWN_WEAKNESS" | "WEAK_TRAPDOOR_SUSPECTED"; }, { binding?: "FIXTURE_COHERENCE_SELF_ATTESTED" | "MATH_ONLY"; curve?: string; mathCheck?: "PASS" | "FAIL" | "ERROR"; pinnedVerificationKeyId?: string; proofHash?: string; proofSystem?: string; publicInputsHash?: string; publicSignals?: string[]; verificationKeyAnchor?: "CALLER_PIN" | "PINNED_REGISTRY" | "UNANCHORED"; verificationKeyFingerprint?: string; verificationKeyHash?: string; verificationKeyStrength?: "NO_KNOWN_WEAKNESS" | "WEAK_TRAPDOOR_SUSPECTED"; }>; verified: ZodBoolean; }, "strip", ZodTypeAny, { claims?: Record<string, string>; curve?: string; durationMs?: number; engine?: "snarkjs-bn254"; experimental?: true; issues?: object[]; path?: string; proofSystem?: "groth16"; schema?: "hardkas.zkProofMathVerification.v1"; status?: "ZK_GROTH16_MATH_VERIFIED" | "ZK_GROTH16_MATH_VALID_UNANCHORED_VK" | "ZK_GROTH16_MATH_REJECTED" | "ZK_GROTH16_VERIFIER_ERROR"; summary?: { binding?: "FIXTURE_COHERENCE_SELF_ATTESTED" | "MATH_ONLY"; curve?: string; mathCheck?: "PASS" | "FAIL" | "ERROR"; pinnedVerificationKeyId?: string; proofHash?: string; proofSystem?: string; publicInputsHash?: string; publicSignals?: string[]; verificationKeyAnchor?: "CALLER_PIN" | "PINNED_REGISTRY" | "UNANCHORED"; verificationKeyFingerprint?: string; verificationKeyHash?: string; verificationKeyStrength?: "NO_KNOWN_WEAKNESS" | "WEAK_TRAPDOOR_SUSPECTED"; }; verified?: boolean; }, { claims?: Record<string, string>; curve?: string; durationMs?: number; engine?: "snarkjs-bn254"; experimental?: true; issues?: object[]; path?: string; proofSystem?: "groth16"; schema?: "hardkas.zkProofMathVerification.v1"; status?: "ZK_GROTH16_MATH_VERIFIED" | "ZK_GROTH16_MATH_VALID_UNANCHORED_VK" | "ZK_GROTH16_MATH_REJECTED" | "ZK_GROTH16_VERIFIER_ERROR"; summary?: { binding?: "FIXTURE_COHERENCE_SELF_ATTESTED" | "MATH_ONLY"; curve?: string; mathCheck?: "PASS" | "FAIL" | "ERROR"; pinnedVerificationKeyId?: string; proofHash?: string; proofSystem?: string; publicInputsHash?: string; publicSignals?: string[]; verificationKeyAnchor?: "CALLER_PIN" | "PINNED_REGISTRY" | "UNANCHORED"; verificationKeyFingerprint?: string; verificationKeyHash?: string; verificationKeyStrength?: "NO_KNOWN_WEAKNESS" | "WEAK_TRAPDOOR_SUSPECTED"; }; verified?: boolean; }>

Defined in: packages/artifacts/src/schemas.ts:1549