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

RELIC interop #57

Merged
merged 1 commit into from
Oct 4, 2017
Merged

RELIC interop #57

merged 1 commit into from
Oct 4, 2017

Conversation

ebfull
Copy link
Collaborator

@ebfull ebfull commented Oct 3, 2017

Closes #2

RELIC has changed the G2 generator to match ours: relic-toolkit/relic@25aafec

RELIC will not have the same serialization as us.

One last difference is that RELIC conjugates the pairing result to account for the negative curve parameter. It doesn't matter for BLS curves but it's strictly more correct.

@ebfull
Copy link
Collaborator Author

ebfull commented Oct 3, 2017

@bmerge try

@bmerge
Copy link
Collaborator

bmerge commented Oct 3, 2017

⌛ Trying commit 18c75f1 with merge 8e0a9c6...

bmerge added a commit that referenced this pull request Oct 3, 2017
RELIC interop

Closes #2

RELIC has changed the G2 generator to match ours: relic-toolkit/relic@25aafec

RELIC will not have the same serialization as us.

One last difference is that RELIC conjugates the pairing result to account for the negative curve parameter. It doesn't matter for BLS curves but it's strictly more correct.
@bmerge
Copy link
Collaborator

bmerge commented Oct 3, 2017

☀️ Test successful - pairing-linux32-try, pairing-linux64-try, pairing-windows32msvc-try, pairing-windows64msvc-try
State: approved= try=True

Copy link
Collaborator

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK, non-blocking suggestion about hex conversion.

assert_eq!(Bls12::pairing(G1::one(), G2::one()), Fq12 {
c0: Fq6 {
c0: Fq2 {
c0: Fq::from_str("2819105605953691245277803056322684086884703000473961065716485506033588504203831029066448642358042597501014294104502").unwrap(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

It might be better to do the conversion from hex in code so that it's more easily visible how this relates to the test vector above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Opened #59 because I agree.

@ebfull
Copy link
Collaborator Author

ebfull commented Oct 4, 2017

@bmerge r+

@bmerge
Copy link
Collaborator

bmerge commented Oct 4, 2017

📌 Commit 18c75f1 has been approved by ebfull

@bmerge
Copy link
Collaborator

bmerge commented Oct 4, 2017

⌛ Testing commit 18c75f1 with merge f9d4c8b...

bmerge added a commit that referenced this pull request Oct 4, 2017
RELIC interop

Closes #2

RELIC has changed the G2 generator to match ours: relic-toolkit/relic@25aafec

RELIC will not have the same serialization as us.

One last difference is that RELIC conjugates the pairing result to account for the negative curve parameter. It doesn't matter for BLS curves but it's strictly more correct.
@bmerge
Copy link
Collaborator

bmerge commented Oct 4, 2017

☀️ Test successful - pairing-linux32-auto, pairing-linux64-auto, pairing-windows32msvc-auto, pairing-windows64msvc-auto
Approved by: ebfull
Pushing f9d4c8b to master...

@bmerge bmerge merged commit 18c75f1 into master Oct 4, 2017
str4d pushed a commit that referenced this pull request Apr 30, 2020
@ebfull ebfull deleted the relic-interop branch September 8, 2020 21:53
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.

3 participants