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

Commit

Permalink
test: BBS+ selective disclosure extended examples with a more constra…
Browse files Browse the repository at this point in the history
…ined set of claims in the derived credential

closes #2410

Signed-off-by: Dmitriy Kinoshenko <[email protected]>
  • Loading branch information
kdimak committed Jan 8, 2021
1 parent 20fa966 commit 9446677
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 9446677

Please sign in to comment.