Expand description
This crate contains core traits for generic-ec
crate.
You should only need these traits if you implement your own Curve
instance.
Otherwise, generic-ec
API should suffice.
Modules§
- coords
- Exposes information about point coordinates
Structs§
- Curve
Generator - Curve generator
- Error
- Error type
Traits§
- Additive
- Type for which addition is defined
- Byte
Array - Byte array
- Compressed
Encoding - Compressed encoding of the point
- Curve
- Elliptic curve
- Decode
- Decodes a point from its compressed or uncompressed representation
- Integer
Encoding - Encodes an integer as bytes
- Invertible
- Type for which invert function is defined
- Multiplicative
- Type for which multiplication is defined
- NoInvalid
Points - Marker trait for curves whose underlying implementation doesn’t allow representing invalid points.
- OnCurve
- Checks whether the point is on curve
- One
- Type that has “one” value (multiplicative identity)
- Reduce
- Reduces an integer represented as array of
N
bytes modulo curve (prime) order - Samplable
- Type can be uniformely sampled from source of randomness
- Small
Factor - Checks whether a point has small factor
- Uncompressed
Encoding - Uncompressed encoding of the point
- Zero
- Type that has zero value (additive identity)