Enum rosetta_types::curve_type::CurveType
source · pub enum CurveType {
Secp256k1,
Secp256r1,
Edwards25519,
Tweedle,
Pallas,
Schnorrkel,
}
Expand description
CurveType : CurveType is the type of cryptographic curve associated with a PublicKey. * secp256k1: SEC compressed - 33 bytes
(https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * secp256r1: SEC compressed - 33 bytes
(https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * edwards25519: y (255-bits) || x-sign-bit (1-bit)
- 32 bytes
(https://ed25519.cr.yp.to/ed25519-20110926.pdf) * tweedle: 1st pk : Fq.t (32 bytes) || 2nd pk : Fq.t (32 bytes) (https://github.com/CodaProtocol/coda/blob/develop/rfcs/0038-rosetta-construction-api.md#marshal-keys) * pallas: x (255 bits) || y-parity-bit (1-bit) - 32 bytes
(https://github.com/zcash/pasta)
CurveType is the type of cryptographic curve associated with a PublicKey. * secp256k1: SEC compressed - 33 bytes
(https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * secp256r1: SEC compressed - 33 bytes
(https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * edwards25519: y (255-bits) || x-sign-bit (1-bit)
- 32 bytes
(https://ed25519.cr.yp.to/ed25519-20110926.pdf) * tweedle: 1st pk : Fq.t (32 bytes) || 2nd pk : Fq.t (32 bytes) (https://github.com/CodaProtocol/coda/blob/develop/rfcs/0038-rosetta-construction-api.md#marshal-keys) * pallas: x (255 bits) || y-parity-bit (1-bit) - 32 bytes
(https://github.com/zcash/pasta)
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for CurveType
impl<'de> Deserialize<'de> for CurveType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Ord for CurveType
impl Ord for CurveType
source§impl PartialEq<CurveType> for CurveType
impl PartialEq<CurveType> for CurveType
source§impl PartialOrd<CurveType> for CurveType
impl PartialOrd<CurveType> for CurveType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more