pub trait EllipticCurve {
    // Required methods
    fn add(
        &self,
        x1: &BigInt,
        y1: &BigInt,
        x2: &BigInt,
        y2: &BigInt
    ) -> (BigInt, BigInt);
    fn scalar_base_mult(&self, k: &[u8]) -> (BigInt, BigInt);
    fn scalar_mult(
        &self,
        bx: &BigInt,
        by: &BigInt,
        k: &[u8]
    ) -> (BigInt, BigInt);
    fn is_on_curve(&self, x: &BigInt, y: &BigInt) -> bool;
}

Required Methods§

source

fn add( &self, x1: &BigInt, y1: &BigInt, x2: &BigInt, y2: &BigInt ) -> (BigInt, BigInt)

source

fn scalar_base_mult(&self, k: &[u8]) -> (BigInt, BigInt)

source

fn scalar_mult(&self, bx: &BigInt, by: &BigInt, k: &[u8]) -> (BigInt, BigInt)

source

fn is_on_curve(&self, x: &BigInt, y: &BigInt) -> bool

Implementors§