Trait generic_ec_core::Zero

source ·
pub trait Zero {
    // Required methods
    fn zero() -> Self;
    fn is_zero(x: &Self) -> Choice;
}
Expand description

Type that has zero value (additive identity)

Required Methods§

source

fn zero() -> Self

Constructs zero value of Self

source

fn is_zero(x: &Self) -> Choice

Checks (in constant-time) if x is zero

Object Safety§

This trait is not object safe.

Implementors§