pub enum CurveType {
Mock,
BN254,
BLS12_381,
BLS24_317,
BLS12_377,
BW6_761,
BLS24_315,
BW6_633,
}Expand description
Enumeration of supported elliptic curve types.
This enum represents all the elliptic curves that can be used with rSnark. Each curve type corresponds to a specific elliptic curve with unique mathematical properties and field characteristics.
§Curve Categories
§Production Curves
BN254: Barreto-Naehrig curve with 254-bit prime, widely used in EthereumBLS12_381: BLS12 curve with 381-bit prime, used in Ethereum 2.0BLS12_377: BLS12 curve with 377-bit primeBLS24_317: BLS24 curve with 317-bit primeBLS24_315: BLS24 curve with 315-bit primeBW6_761: BW6 curve with 761-bit primeBW6_633: BW6 curve with 633-bit prime
§Testing Curves
Mock: Mock curve for testing purposes
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CurveType
impl RefUnwindSafe for CurveType
impl Send for CurveType
impl Sync for CurveType
impl Unpin for CurveType
impl UnwindSafe for CurveType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more