Derive Clone for EdwardsPoint.

This commit is contained in:
Sean Bowe 2018-02-24 17:11:17 -07:00
parent 3346fba915
commit 27674bf8ff
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 1 additions and 9 deletions

View File

@ -30,20 +30,12 @@ use super::lookup::{
use super::boolean::Boolean;
#[derive(Clone)]
pub struct EdwardsPoint<E: Engine> {
pub x: AllocatedNum<E>,
pub y: AllocatedNum<E>
}
impl<E: Engine> Clone for EdwardsPoint<E> {
fn clone(&self) -> Self {
EdwardsPoint {
x: self.x.clone(),
y: self.y.clone()
}
}
}
/// Perform a fixed-base scalar multiplication with
/// `by` being in little-endian bit order.
pub fn fixed_base_multiplication<E, CS>(