From 27674bf8ff59b7c4427af7839029742e3a9333ef Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Sat, 24 Feb 2018 17:11:17 -0700 Subject: [PATCH] Derive Clone for EdwardsPoint. --- src/circuit/ecc.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/circuit/ecc.rs b/src/circuit/ecc.rs index 79b2813..0828812 100644 --- a/src/circuit/ecc.rs +++ b/src/circuit/ecc.rs @@ -30,20 +30,12 @@ use super::lookup::{ use super::boolean::Boolean; +#[derive(Clone)] pub struct EdwardsPoint { pub x: AllocatedNum, pub y: AllocatedNum } -impl Clone for EdwardsPoint { - 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(