Struct diem_crypto::x25519::PublicKey [−][src]
pub struct PublicKey(_);Expand description
This type should be used to deserialize a received public key
Implementations
Deserialize an X25119 PublicKey from its representation as an Ed25519PublicKey, following the XEdDSA approach. This is meant to compensate for the poor key storage capabilities of key management solutions, and NOT to promote double usage of keys under several schemes, which would lead to BAD vulnerabilities.
Trait Implementations
type Parameters = <[u8; 32] as Arbitrary>::Parameters
type Parameters = <[u8; 32] as Arbitrary>::Parameters
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
type PrivateKeyMaterial = PrivateKey
type PrivateKeyMaterial = PrivateKey
We require public / private types to be coupled, i.e. their associated type is each other. Read more
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.
pub fn vzip(self) -> V
When trying to convert from bytes, we simply decode the string into bytes before checking if we can convert. Read more
A function to encode into hex-string after serializing.