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

Update encoding rules #216

Merged
merged 8 commits into from
Oct 11, 2022

Conversation

BasileiosKal
Copy link
Contributor

Closes #207

DSTs are defined as octet strings everywhere. Default DSTs are turned into octet strings using utf8. Also, the ciphersuite_id is excluded from the “must be prepended with its length” rule when hashing (no reason for it).

7. el_octs = I2OSP(length(el), 8) || el
8. else if el is a Point in G1: el_octs = point_to_octets_g1(el)
9. else if el is a Point in G2: el_octs = point_to_octets_g2(el)
4. if el is an octet string representing a public key:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this used? Why not just pass it as a G2 point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We definitely could, but i like having the PK as an octet string. It's more intuitive for a developer IMO. Also updating this would be a bigger change (will need to update the octets_to_pubkey to something like validate_pubkey which I'm not sure how it would look like. Opened #219 to keep track of this.

@tplooker
Copy link
Member

tplooker commented Oct 6, 2022

With the CFRG draft adoption the draft name has changed again, please rebase this PR to target the new draft name draft-irtf-cfrg-bbs-signatures

@tplooker
Copy link
Member

Multiple approvals, open over two weeks, merging

@tplooker tplooker merged commit 5fc8cb8 into decentralized-identity:main Oct 11, 2022
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.

ascii and utf8
3 participants