Struct tor_interface::tor_crypto::Ed25519PublicKey
source · pub struct Ed25519PublicKey { /* private fields */ }
Implementations§
source§impl Ed25519PublicKey
impl Ed25519PublicKey
pub fn from_raw(raw: &[u8; 32]) -> Result<Ed25519PublicKey, Error>
pub fn from_service_id( service_id: &V3OnionServiceId ) -> Result<Ed25519PublicKey, Error>
pub fn from_private_key(private_key: &Ed25519PrivateKey) -> Ed25519PublicKey
pub fn to_base32(&self) -> String
pub fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
source§impl Clone for Ed25519PublicKey
impl Clone for Ed25519PublicKey
source§fn clone(&self) -> Ed25519PublicKey
fn clone(&self) -> Ed25519PublicKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Ed25519PublicKey
impl Debug for Ed25519PublicKey
Auto Trait Implementations§
impl Freeze for Ed25519PublicKey
impl RefUnwindSafe for Ed25519PublicKey
impl Send for Ed25519PublicKey
impl Sync for Ed25519PublicKey
impl Unpin for Ed25519PublicKey
impl UnwindSafe for Ed25519PublicKey
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