Enum chainhook_types::CurveType
source · pub enum CurveType {
Edwards25519,
Secp256k1,
}Expand description
CurveType is the type of cryptographic curve associated with a PublicKey.
Variants§
Edwards25519
y (255-bits) || x-sign-bit (1-bit) - 32 bytes (https://ed25519.cr.yp.to/ed25519-20110926.pdf)
Secp256k1
SEC compressed - 33 bytes (https://secg.org/sec1-v2.pdf#subsubsection.2.3.3)
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CurveType> for CurveType
impl PartialEq<CurveType> for CurveType
impl StructuralPartialEq for CurveType
Auto Trait Implementations§
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