-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reworked w3c credentials and presentations to use DataIntegrityProof instead of custom AnonCreds context #291
Reworked w3c credentials and presentations to use DataIntegrityProof instead of custom AnonCreds context #291
Conversation
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: Abdulbois <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: Abdulbois <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
c09f76c
to
1dd27f0
Compare
Signed-off-by: artem.ivanov <[email protected]>
05e725d
to
16ec1e9
Compare
Signed-off-by: artem.ivanov <[email protected]>
16ec1e9
to
a2a178e
Compare
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
5a1a503
to
a97b32f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to go over it, but there's a lot of changed code, so it's a bit hard to look really in-depth whether are changes are correct. But overall looks good to me!
@@ -280,20 +200,21 @@ pub extern "C" fn anoncreds_process_w3c_credential( | |||
cred_p: *mut ObjectHandle, | |||
) -> ErrorCode {} | |||
|
|||
/// Get value of requested credential attribute as string | |||
/// Get credential signature information required for proof building and verification | |||
/// This information is aggregated from `anoncredsvc-2023` and `anoncredspresvc-2023` proofs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swcurran my suggestion would still be to add some more dashes, and make pres -> proof. Proof is what also seems to have been used in bbs suite.
So anoncreds-vc-2023 and anoncreds-vc-proof-2023. Or maybe something like ac-vc-23 and ac-vc-proof-23 (or cl-vc-23)
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
Signed-off-by: artem.ivanov <[email protected]>
I think one thing that is missing to make it compliant with the DI spec is that the proofValue MUST be multibase encoded and have a header:
I don't know if there's a multibase format we can use that won't add too much overhead to the final proofValue? It must decode to the binary data needed to verify the proof. I don't know if the output of messagepack is binary? If so, we could do a base64 pass on it and use that as the proofValue? Here's a list of all multibase types: https://github.com/multiformats/multibase/blob/master/multibase.csv |
@TimoGlastra I already applied multibase encoding for the proof value with
|
Oh woops, sorry completely missed that. Nice 😬 |
@Artemkaaas — there is a conflict in the PR now. Could you please resolve and we’ll merge this. Sorry for the delay over the break. |
…changes # Conflicts: # .github/workflows/build.yml
Update W3C Credential to match the design: hyperledger/anoncreds-spec#192
I also included changes from the following PRs as their changes significantly intersected with the current one:
Regarding vc format
1.1
/2.0:
I added an option parameterversion
toanoncreds_process_w3c_credential
,anoncreds_credential_to_w3c
, andanoncreds_create_w3c_presentation
functions defining what vc format to return.