Move probes up to follow verification section in spec document
This commit is contained in:
parent
f0cddf0906
commit
4abd45937c
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user