Struct diem_crypto::test_utils::KeyPair [−][src]
Expand description
A keypair consisting of a private and public key
Fields
private_key: S
the private key component
public_key: P
the public key component
Trait Implementations
impl<'de, S, P> Deserialize<'de> for KeyPair<S, P> where
for<'a> P: From<&'a S>,
S: Deserialize<'de>,
P: Deserialize<'de>,
impl<'de, S, P> Deserialize<'de> for KeyPair<S, P> where
for<'a> P: From<&'a S>,
S: Deserialize<'de>,
P: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Generate key material from an RNG. This should generally not be used for production purposes even with a good source of randomness. When possible use hardware crypto to generate and store private keys. Read more
Generate a random key using the shared TEST_SEED