From 416df20c9a7dbf7e81e37e574a57e9987466ade8 Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Fri, 20 Dec 2024 11:08:30 +0100 Subject: [PATCH] fix % --- vcr/credential/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcr/credential/validator.go b/vcr/credential/validator.go index b92e226fb..9e566d619 100644 --- a/vcr/credential/validator.go +++ b/vcr/credential/validator.go @@ -306,7 +306,7 @@ func validatePolicyAssertions(credential vc.VerifiableCredential) error { } for _, policy := range policies[1:] { policySplit := strings.Split(policy, ":") - if len(policySplit)%2 != 0 { + if len(policySplit)%2 != 1 { // policy name and 2*n key/value pairs return fmt.Errorf("invalid did:x509 policy '%s'", policy) } policyName := policySplit[0]