Skip to content
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

Updates to proof syntax #30

Merged
merged 1 commit into from
May 19, 2020
Merged

Updates to proof syntax #30

merged 1 commit into from
May 19, 2020

Conversation

tplooker
Copy link
Contributor

@tplooker tplooker commented May 19, 2020

This PR updates the following

Fixes #25, Fixes #22

@tplooker tplooker requested a review from OR13 as a code owner May 19, 2020 10:16
Copy link
Member

@msporny msporny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- solid direction... thank you!

@kdenhartog
Copy link
Member

What’s the order of which the bytes are being concatenated in the proofValue? I didn’t see a mention of that in there, but might have just missed it.

@tplooker
Copy link
Contributor Author

@kdenhartog our intention at this stage is to not define that in this spec but instead in the IETF draft for BBS signatures and then point this spec at that.

Copy link
Contributor

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dlongley
Copy link
Contributor

dlongley commented May 19, 2020

@tplooker -- would the other tweak we discussed: expressing 2-tuples of (blank node ID/index from full data, blank node ID/index from disclosed data) to eliminate the need for special skolem URIs (urn:bnid:<stuff>) also just fall under the IETF draft?

@tplooker
Copy link
Contributor Author

tplooker commented May 19, 2020

@dlongley, was just about to document that idea you suggested in #10, r.e where the BN mapping algorithm should live, IMO right now I would say the definition of that algorithm would still be in this spec (or a section of the linked data proof spec?) as it is an algorithm that is applied specifically to preparing the "verify data" for a linked data proof. Different assertion formats such as JWS CWS would perhaps not have the concept of this type of mapping? Essentially the proposed crypto API for verifyProof is

verifyProof({
publicKey,
proof,
verifyData,
challenge
})

E.g here is a little runnable sample of a reference implementation https://github.com/mattrglobal/node-bbs-signatures#usage

@dlongley
Copy link
Contributor

@tplooker -- ok, sounds good.

@tplooker tplooker merged commit 15dc95d into master May 19, 2020
@tplooker tplooker deleted the tl/proof-syntax-update branch May 19, 2020 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use proofValue as the the value for the proof Revealed statements representation
4 participants