pub struct Ed25519PublicKey(pub [u8; 32]);
Expand description
Ed25519 public key.
Tuple Fields§
§0: [u8; 32]
Implementations§
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
source§impl Decode for Ed25519PublicKey
impl Decode for Ed25519PublicKey
source§impl Display for Ed25519PublicKey
impl Display for Ed25519PublicKey
source§impl Encode for Ed25519PublicKey
impl Encode for Ed25519PublicKey
source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix.source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.source§impl From<&Ed25519Keypair> for Ed25519PublicKey
impl From<&Ed25519Keypair> for Ed25519PublicKey
source§fn from(keypair: &Ed25519Keypair) -> Ed25519PublicKey
fn from(keypair: &Ed25519Keypair) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<&Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature ed25519
only.
impl From<&Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature
ed25519
only.source§fn from(private: &Ed25519PrivateKey) -> Ed25519PublicKey
fn from(private: &Ed25519PrivateKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<&VerifyingKey> for Ed25519PublicKey
Available on crate feature ed25519
only.
impl From<&VerifyingKey> for Ed25519PublicKey
Available on crate feature
ed25519
only.source§fn from(key: &VerifyingKey) -> Ed25519PublicKey
fn from(key: &VerifyingKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<Ed25519Keypair> for Ed25519PublicKey
impl From<Ed25519Keypair> for Ed25519PublicKey
source§fn from(keypair: Ed25519Keypair) -> Ed25519PublicKey
fn from(keypair: Ed25519Keypair) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature ed25519
only.
impl From<Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature
ed25519
only.source§fn from(private: Ed25519PrivateKey) -> Ed25519PublicKey
fn from(private: Ed25519PrivateKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<Ed25519PublicKey> for KeyData
impl From<Ed25519PublicKey> for KeyData
source§fn from(public_key: Ed25519PublicKey) -> KeyData
fn from(public_key: Ed25519PublicKey) -> KeyData
Converts to this type from the input type.
source§impl From<Ed25519PublicKey> for PublicKey
impl From<Ed25519PublicKey> for PublicKey
source§fn from(public_key: Ed25519PublicKey) -> PublicKey
fn from(public_key: Ed25519PublicKey) -> PublicKey
Converts to this type from the input type.
source§impl From<Ed25519PublicKey> for SkEd25519
impl From<Ed25519PublicKey> for SkEd25519
source§fn from(public_key: Ed25519PublicKey) -> SkEd25519
fn from(public_key: Ed25519PublicKey) -> SkEd25519
Converts to this type from the input type.
source§impl From<SkEd25519> for Ed25519PublicKey
impl From<SkEd25519> for Ed25519PublicKey
source§fn from(sk: SkEd25519) -> Ed25519PublicKey
fn from(sk: SkEd25519) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<VerifyingKey> for Ed25519PublicKey
Available on crate feature ed25519
only.
impl From<VerifyingKey> for Ed25519PublicKey
Available on crate feature
ed25519
only.source§fn from(key: VerifyingKey) -> Ed25519PublicKey
fn from(key: VerifyingKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl Hash for Ed25519PublicKey
impl Hash for Ed25519PublicKey
source§impl LowerHex for Ed25519PublicKey
impl LowerHex for Ed25519PublicKey
source§impl Ord for Ed25519PublicKey
impl Ord for Ed25519PublicKey
source§fn cmp(&self, other: &Ed25519PublicKey) -> Ordering
fn cmp(&self, other: &Ed25519PublicKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Ed25519PublicKey
impl PartialEq for Ed25519PublicKey
source§impl PartialOrd for Ed25519PublicKey
impl PartialOrd for Ed25519PublicKey
source§impl TryFrom<&[u8]> for Ed25519PublicKey
impl TryFrom<&[u8]> for Ed25519PublicKey
source§impl TryFrom<&Ed25519PublicKey> for VerifyingKey
Available on crate feature ed25519
only.
impl TryFrom<&Ed25519PublicKey> for VerifyingKey
Available on crate feature
ed25519
only.source§fn try_from(key: &Ed25519PublicKey) -> Result<VerifyingKey>
fn try_from(key: &Ed25519PublicKey) -> Result<VerifyingKey>
Performs the conversion.
source§impl TryFrom<Ed25519PublicKey> for VerifyingKey
Available on crate feature ed25519
only.
impl TryFrom<Ed25519PublicKey> for VerifyingKey
Available on crate feature
ed25519
only.source§fn try_from(key: Ed25519PublicKey) -> Result<VerifyingKey>
fn try_from(key: Ed25519PublicKey) -> Result<VerifyingKey>
Performs the conversion.
source§impl UpperHex for Ed25519PublicKey
impl UpperHex for Ed25519PublicKey
source§impl Verifier<Signature> for Ed25519PublicKey
Available on crate features alloc
and ed25519
only.
impl Verifier<Signature> for Ed25519PublicKey
Available on crate features
alloc
and ed25519
only.impl Copy for Ed25519PublicKey
impl Eq for Ed25519PublicKey
impl StructuralPartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)