Derive Clone for EdwardsPoint.
This commit is contained in:
parent
3346fba915
commit
27674bf8ff
|
@ -30,20 +30,12 @@ use super::lookup::{
|
||||||
|
|
||||||
use super::boolean::Boolean;
|
use super::boolean::Boolean;
|
||||||
|
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct EdwardsPoint<E: Engine> {
|
pub struct EdwardsPoint<E: Engine> {
|
||||||
pub x: AllocatedNum<E>,
|
pub x: AllocatedNum<E>,
|
||||||
pub y: 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
|
/// Perform a fixed-base scalar multiplication with
|
||||||
/// `by` being in little-endian bit order.
|
/// `by` being in little-endian bit order.
|
||||||
pub fn fixed_base_multiplication<E, CS>(
|
pub fn fixed_base_multiplication<E, CS>(
|
||||||
|
|
Loading…
Reference in New Issue