mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
Derive Clone for EdwardsPoint.
This commit is contained in:
@@ -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>(
|
||||
|
Reference in New Issue
Block a user