Skip to content
Snippets Groups Projects

Remove subject id from the VC

Merged Lyuben Penkovski requested to merge remove-vc-subject-id into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • a482efd2
    Remove subject id from the VC · a482efd2
    Lyuben Penkovski authored
    Subject id must be represented in specific format, while currently
    it's arbitrarily contructed from policy group/name/version
    and causes problems with VC/VP signatures.
@@ -41,7 +41,7 @@ func (c *Credentials) NewCredential(contexts []string, subjectID string, subject
Issuer: verifiable.Issuer{ID: c.issuerURI},
Issued: &util.TimeWrapper{Time: time.Now()},
Subject: verifiable.Subject{
ID: subjectID,
//ID: subjectID,
CustomFields: subject,
},
}
Loading