Open Patrik-Stas opened 1 year ago
This has been a debate in the AnonCreds specification working group as well. We came to the same conclusion — the value being a “DID” makes no sense (no such thing in the context of AnonCreds), nor even an identifier. I think the use of DID was to suggest that people use a DIDComm DID, which would (usually) be unique per connection. The holder shouldn’t use the same identifier for all issuers as that would be correlating.
In the end we renamed it “entropy” in the spec and just said it was a random number.
However, some question whether the value should be provided by the holder or the issuer. I’m still not clear on what the final thinking is on that from the experts. For now, we have left it as provided by the holder, and is a random value.
Awesome @swcurran that sheds some light on this, thank you!
@gmulhearn
I suppose we can go with the rename into entropy
as well, or perhaps the Holder caller of this doesn't even need to care, and we'd internally randomly generate some random data on their behalf?
@Patrik-Stas this all matches my understanding! I think we could generate on behalf of the user, not sure I can think of a use case where a user would care about what their entropy specifically is
Quoting George over here https://github.com/hyperledger/aries-vcx/pull/946#discussion_r1301621028
The anoncreds API for Prover (creating proof request) looks like this
According to Geroge's quote, we could perhaps remove the argument from the interface and generate a random DID to satisfy what credx requires under the hood? Well, it needs to be looked at.