Struct oasis_core_runtime::common::crypto::signature::PrivateKey
source · pub struct PrivateKey(pub SigningKey);
Expand description
An Ed25519 private key.
Tuple Fields§
§0: SigningKey
Implementations§
source§impl PrivateKey
impl PrivateKey
sourcepub fn from_bytes(bytes: Vec<u8>) -> PrivateKey
pub fn from_bytes(bytes: Vec<u8>) -> PrivateKey
Construct a private key from bytes returned by to_bytes
.
§Panics
This method will panic in case the passed bytes do not have the correct length.
sourcepub fn from_test_seed(seed: String) -> Self
pub fn from_test_seed(seed: String) -> Self
Generate a new private key from a test key seed.
sourcepub fn public_key(&self) -> PublicKey
pub fn public_key(&self) -> PublicKey
Returns the public key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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