pub struct ByteHex(/* private fields */);Expand description
ByteHex is a new type that wrap the String which should be an output of encoded hex format
This newtype will able to generated from the SharedSecret and ECDHPublicKey, and if there is
a common string value it also possible to generate from it
Trait Implementations§
Source§impl From<PublicKey> for ByteHex
impl From<PublicKey> for ByteHex
Source§fn from(value: ECDHPublicKey) -> Self
fn from(value: ECDHPublicKey) -> Self
Converts to this type from the input type.
Source§fn from(value: SharedSecret) -> Self
fn from(value: SharedSecret) -> Self
Converts to this type from the input type.
Source§impl From<VerifyingKey> for ByteHex
impl From<VerifyingKey> for ByteHex
Source§fn from(value: VerifyingKey) -> Self
fn from(value: VerifyingKey) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ByteHex> for PublicKeyBytes
impl TryFrom<ByteHex> for PublicKeyBytes
Source§impl TryFrom<ByteHex> for PublicKeyBytes
impl TryFrom<ByteHex> for PublicKeyBytes
Source§impl TryFrom<ByteHex> for SignatureBytes
impl TryFrom<ByteHex> for SignatureBytes
impl StructuralPartialEq for ByteHex
Auto Trait Implementations§
impl Freeze for ByteHex
impl RefUnwindSafe for ByteHex
impl Send for ByteHex
impl Sync for ByteHex
impl Unpin for ByteHex
impl UnwindSafe for ByteHex
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