CrossSystemValidator
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / CrossSystemValidator
Class: CrossSystemValidator
Section titled “Class: CrossSystemValidator”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:1833
CrossSystemValidator
Validates that proofs from different ZK systems can be correctly composed together.
Example
Section titled “Example”const validator = new CrossSystemValidator()
const report = validator.validate([noirProof, halo2Proof])
if (!report.valid) { console.log('Validation errors:', report.checks.filter(c => !c.passed))}Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CrossSystemValidator(
options?):CrossSystemValidator
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:1836
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”CrossSystemValidator
Methods
Section titled “Methods”validate()
Section titled “validate()”validate(
proofs,options?):ValidationReport
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:1840
Validate proofs for cross-system composition
Parameters
Section titled “Parameters”proofs
Section titled “proofs”options?
Section titled “options?”Returns
Section titled “Returns”validateComposed()
Section titled “validateComposed()”validateComposed(
composedProof,options?):ValidationReport
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:1844
Validate a composed proof
Parameters
Section titled “Parameters”composedProof
Section titled “composedProof”options?
Section titled “options?”Returns
Section titled “Returns”areSystemsCompatible()
Section titled “areSystemsCompatible()”areSystemsCompatible(
system1,system2):boolean
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:1848
Quick check if two systems are compatible
Parameters
Section titled “Parameters”system1
Section titled “system1”system2
Section titled “system2”Returns
Section titled “Returns”boolean
getSystemInfo()
Section titled “getSystemInfo()”getSystemInfo(
system):SystemInfo|undefined
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:1852
Get system information
Parameters
Section titled “Parameters”system
Section titled “system”Returns
Section titled “Returns”SystemInfo | undefined