Quick setup: verification context
Configuring verification context and verifiers for ProofPack (JS and C#)
ProofPack uses different setup for (1) wallet-only verification (IsDelegate) and (2) full proof verification (AttestedMerkleExchangeReader with attestation verifier factory and routing). The exact APIs and config shapes are in the ProofPack repo.
JavaScript: Path 1 shows the real
IsDelegateAttestationVerifierconfig (delegationSchemaUid,acceptedRoots,preferredSubjectSchemas,schemaPayloadValidators). For full-document verification, the repo usescreateVerificationContextWithAttestationVerifierFactorywith anAttestationVerifierFactoryand routing config — see ProofPack JavaScript README and Ethereum package: Using with Verification Context.C# / .NET: Verifier uses
IsDelegateVerifierConfig(AcceptedRoots, DelegationSchemaUid, etc.) andIsDelegateVerifierOptions(Chains or Lookup). Reader usesAttestedMerkleExchangeVerificationContext.WithAttestationVerifierFactorywith routing. See ProofPack .NET README and EXAMPLES.md.
Conceptually you configure trusted roots and schemas, then create a verifier (for wallet checks) and a reader + verification context (for JWS/JWT). Copy-paste config from the repo rather than from this page.
Last updated