[][src]Trait elliptic_curve::FromBytes

pub trait FromBytes: ConditionallySelectable + Sized {
    type Size: ArrayLength<u8>;
    fn from_bytes(bytes: &GenericArray<u8, Self::Size>) -> CtOption<Self>;
}

Try to decode the given bytes into a curve element

Associated Types

type Size: ArrayLength<u8>

Size of the serialized byte array

Loading content...

Required methods

fn from_bytes(bytes: &GenericArray<u8, Self::Size>) -> CtOption<Self>

Try to decode this object from bytes

Loading content...

Implementors

Loading content...