From 4abd45937ca1e87353292e8443d0129f1ec9b28c Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Thu, 5 Jan 2023 14:30:25 +0100 Subject: [PATCH] Move probes up to follow verification section in spec document --- .../oneedtech/inspect/vc/OB30Inspector.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java index 1fd21c9..a775f0c 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java @@ -174,6 +174,16 @@ public class OB30Inspector extends VCInspector implements SubInspector { probeCount++; accumulator.add(new CredentialSubjectProbe("AchievementSubject", true).run(ob.getJson(), ctx)); + // evidence + probeCount++; + accumulator.add(new EvidenceProbe().run(ob.getJson(), ctx)); + if(broken(accumulator)) return abort(ctx, accumulator, probeCount); + + // issuer + probeCount++; + accumulator.add(new IssuerProbe().run(ob.getJson(), ctx)); + if(broken(accumulator)) return abort(ctx, accumulator, probeCount); + //signatures, proofs probeCount++; if(ob.getProofType() == EXTERNAL){ @@ -204,16 +214,6 @@ public class OB30Inspector extends VCInspector implements SubInspector { if(broken(accumulator)) return abort(ctx, accumulator, probeCount); } - // evidence - probeCount++; - accumulator.add(new EvidenceProbe().run(ob.getJson(), ctx)); - if(broken(accumulator)) return abort(ctx, accumulator, probeCount); - - // issuer - probeCount++; - accumulator.add(new IssuerProbe().run(ob.getJson(), ctx)); - if(broken(accumulator)) return abort(ctx, accumulator, probeCount); - //embedded endorsements EndorsementInspector endorsementInspector = new EndorsementInspector.Builder().build();