pub struct VerifyingKey {
pub ed: VerifyingKey,
pub dh: PublicKey,
}
Expand description
Concatenation of X25519 public key (first 32 bytes) and Ed25519 public key (last 32 bytes).
Fields§
§ed: VerifyingKey
Ed25519 public key (last 32 bytes)
dh: PublicKey
X25519 public key (first 32 bytes)
Trait Implementations§
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
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 VerifyingKey
impl Debug for VerifyingKey
Source§impl From<&SecretKey> for VerifyingKey
Derive public key from secret key.
impl From<&SecretKey> for VerifyingKey
Derive public key from secret key.
Source§impl TryFrom<&[u8]> for VerifyingKey
Construct a public key from a slice of bytes, fails if len(bytes) != 64
.
impl TryFrom<&[u8]> for VerifyingKey
Construct a public key from a slice of bytes, fails if len(bytes) != 64
.
Source§impl TryFrom<&VerifyingKey> for Address
Tries to derive address from VerifyingKey
. Throws
InternalError
for invalid addresses.
impl TryFrom<&VerifyingKey> for Address
Tries to derive address from VerifyingKey
. Throws
InternalError
for invalid addresses.
Auto Trait Implementations§
impl Freeze for VerifyingKey
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnwindSafe for VerifyingKey
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