jsonld-signatures-merkleproof2019
Version:
A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context
25 lines (22 loc) • 452 B
text/typescript
export interface PathDefinition {
left?: string;
right?: string;
}
export interface VCProof {
type: string;
created: string;
proofValue?: string;
jws?: string;
proofPurpose: string;
verificationMethod: string;
chainedProofType?: string;
previousProof?: VCProof;
domain?: string;
challenge?: string;
}
export interface DecodedProof {
anchors: string[];
merkleRoot: string;
targetHash: string;
path: PathDefinition[];
}