Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

elliptic pairing special cases for zero points #6483

Closed
wants to merge 1 commit into from

Conversation

cdetrio
Copy link
Contributor

@cdetrio cdetrio commented Sep 8, 2017

This should fix some elliptic curve test cases. See also paritytech/bn#3

@parity-cla-bot
Copy link

It looks like @cdetrio signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@@ -14,7 +14,7 @@ build = "build.rs"
ansi_term = "0.9"
bit-set = "0.4"
bloomchain = "0.1"
bn = { git = "https://github.com/paritytech/bn" }
bn = { git = "https://github.com/cdetrio/bn", branch = "mont-repr-fix" }
Copy link
Contributor

Choose a reason for hiding this comment

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

could you make a PR to the upstream version so we still only have a paritytech dependency?

if a_x == Fq::zero() && a_y == Fq::zero() {
g1_point = G1::zero();
} else {
//g1_point = G1::from(bn::AffineG1::new(a_x, a_y).expect("Invalid a argument - not on curve"));
Copy link
Contributor

Choose a reason for hiding this comment

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

commented-out code

@rphmeier rphmeier added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. M4-core ⛓ Core client code / Rust. labels Sep 8, 2017
@arkpar
Copy link
Collaborator

arkpar commented Sep 8, 2017

Thanks, but this is already fixed in 22269b6

@arkpar arkpar closed this Sep 8, 2017
@cdetrio cdetrio deleted the ecpairing-fix branch October 20, 2017 01:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants