Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2416 from kdimak/issue-2410
Browse files Browse the repository at this point in the history
test: BBS+ selective disclosure extended examples
  • Loading branch information
troyronda authored Jan 8, 2021
2 parents 20fa966 + 9446677 commit b23388a
Show file tree
Hide file tree
Showing 8 changed files with 396 additions and 75 deletions.
12 changes: 7 additions & 5 deletions pkg/doc/presexch/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,11 +530,13 @@ func filterConstraints(constraints *Constraints, creds []*verifiable.Credential)

if constraints.LimitDisclosure {
template, err = json.Marshal(map[string]interface{}{
"id": credential.ID,
"credentialSchema": credential.Schemas,
"type": credential.Types,
"@context": credential.Context,
"issuer": "",
"id": credential.ID,
"credentialSchema": credential.Schemas,
"type": credential.Types,
"@context": credential.Context,
"issuer": credential.Issuer,
"credentialSubject": credential.Subject,
"issuanceDate": credential.Issued,
})
if err != nil {
return nil, err
Expand Down
Loading

0 comments on commit b23388a

Please sign in to comment.