Optimizations (#100)

* avoid creating commitments to zero vectors

* reduce the number of constraints in each iteration from 4 to 3
This commit is contained in:
Srinath Setty
2022-07-27 14:07:44 -07:00
committed by GitHub
parent 3dc26fd7e4
commit 06192ac3d4
6 changed files with 51 additions and 10 deletions

View File

@@ -64,6 +64,12 @@ pub trait Group:
/// Returns the order of the group as a big integer
fn get_order() -> BigInt;
/// Returns an element that is the additive identity of the group
fn zero() -> Self;
/// Returns the generator of the group
fn get_generator() -> Self;
}
/// Represents a compressed version of a group element