Crate generic_ec_core

Source
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§

CurveGenerator
Curve generator
Error
Error type

Traits§

Additive
Type for which addition is defined
ByteArray
Byte array
CompressedEncoding
Compressed encoding of the point
Curve
Elliptic curve
Decode
Decodes a point from its compressed or uncompressed representation
IntegerEncoding
Encodes an integer as bytes
Invertible
Type for which invert function is defined
Multiplicative
Type for which multiplication is defined
NoInvalidPoints
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
SmallFactor
Checks whether a point has small factor
UncompressedEncoding
Uncompressed encoding of the point
Zero
Type that has zero value (additive identity)