Use ExtendedNielsPoint::identity directly in ExtendedPoint::multiply

Saves two Fq multiplications and a stack allocation.
This commit is contained in:
Jack Grigg 2019-04-30 10:07:38 +01:00
parent c5bf022613
commit c392ffbeb2
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ impl ExtendedPoint {
#[inline]
fn multiply(self, by: &[u8; 32]) -> Self {
let zero = ExtendedPoint::identity().to_niels();
let zero = ExtendedNielsPoint::identity();
let base = self.to_niels();
let mut acc = ExtendedPoint::identity();