hyperledger-archives / aries-framework-go

Hyperledger Aries Framework Go provides packages for building Agent / DIDComm services.
https://wiki.hyperledger.org/display/ARIES/aries-framework-go
Apache License 2.0
238 stars 159 forks source link

A Verifiable Presentation may contain multiple VCs #1013

Open troyronda opened 4 years ago

troyronda commented 4 years ago

I see that a VC has a method to create a Presentation from itself. https://godoc.org/github.com/hyperledger/aries-framework-go/pkg/doc/verifiable#Credential.Presentation

How does an implementor create a Presentation from multiple VCs? (@kdimak)

kdimak commented 4 years ago

@troyronda it can be done using Presentation.SetCredentials(), here is an example: https://github.com/hyperledger/aries-framework-go/blob/9c1b42e24dc9498100e84cf067bd36ab7ee5c2ba/pkg/doc/verifiable/example_presentation_test.go#L181