pub struct Seed {
bytes: [u8; 48],
curve: &'static Curve,
pub(crate) cpu_features: Features,
}
Fields§
§bytes: [u8; 48]
§curve: &'static Curve
§cpu_features: Features
Implementations§
source§impl Seed
impl Seed
pub(crate) fn generate( curve: &'static Curve, rng: &dyn SecureRandom, cpu_features: Features, ) -> Result<Self, Unspecified>
pub(crate) fn from_bytes( curve: &'static Curve, bytes: Input<'_>, cpu_features: Features, ) -> Result<Self, Unspecified>
pub fn bytes_less_safe(&self) -> &[u8] ⓘ
pub fn compute_public_key(&self) -> Result<PublicKey, Unspecified>
Auto Trait Implementations§
impl Freeze for Seed
impl RefUnwindSafe for Seed
impl Send for Seed
impl Sync for Seed
impl Unpin for Seed
impl UnwindSafe for Seed
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