Use ExtendedNielsPoint::identity directly in ExtendedPoint::multiply
Saves two Fq multiplications and a stack allocation.
This commit is contained in:
parent
c5bf022613
commit
c392ffbeb2
|
@ -556,7 +556,7 @@ impl ExtendedPoint {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn multiply(self, by: &[u8; 32]) -> Self {
|
fn multiply(self, by: &[u8; 32]) -> Self {
|
||||||
let zero = ExtendedPoint::identity().to_niels();
|
let zero = ExtendedNielsPoint::identity();
|
||||||
let base = self.to_niels();
|
let base = self.to_niels();
|
||||||
|
|
||||||
let mut acc = ExtendedPoint::identity();
|
let mut acc = ExtendedPoint::identity();
|
||||||
|
|
Loading…
Reference in New Issue