-
Notifications
You must be signed in to change notification settings - Fork 119
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
RELIC interop #57
Conversation
@bmerge try |
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.
☀️ Test successful - pairing-linux32-try, pairing-linux64-try, pairing-windows32msvc-try, pairing-windows64msvc-try |
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.
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(), |
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.
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.
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.
Opened #59 because I agree.
@bmerge r+ |
📌 Commit 18c75f1 has been approved by |
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.
☀️ Test successful - pairing-linux32-auto, pairing-linux64-auto, pairing-windows32msvc-auto, pairing-windows64msvc-auto |
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.