Skip to content

Commit

Permalink
Merge pull request #22 from blockchain-certificates/feat/support-mocknet
Browse files Browse the repository at this point in the history
fix(Mocknet): clean verification process as soon as possible
  • Loading branch information
lemoustachiste authored Nov 23, 2022
2 parents 33d9b91 + 4860e58 commit 7a9753c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export class LDMerkleProof2019 extends LinkedDataProof {
this.setProof(proof);
this.setOptions(options);
this.getChain();
if (isMockChain(this.chain)) {
this.adaptProofVerificationProcessToMocknet();
this.adaptIdentityVerificationProcessToMocknet();
}
}

static decodeMerkleProof2019 (proof: VCProof): DecodedProof {
Expand All @@ -128,10 +132,6 @@ export class LDMerkleProof2019 extends LinkedDataProof {
this.documentLoader = documentLoader;
let verified: boolean;
let error: string = '';
if (isMockChain(this.chain)) {
this.adaptProofVerificationProcessToMocknet();
this.adaptIdentityVerificationProcessToMocknet();
}
try {
await this.verifyProcess(this.proofVerificationProcess);
if (verifyIdentity) {
Expand Down

0 comments on commit 7a9753c

Please sign in to comment.