Enum identity_account::types::MethodContent
source · #[non_exhaustive]pub enum MethodContent {
GenerateEd25519,
PrivateEd25519(PrivateKey),
PublicEd25519(PublicKey),
GenerateX25519,
PrivateX25519(PrivateKey),
PublicX25519(PublicKey),
}
Expand description
Method content for creating new verification methods.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GenerateEd25519
Generate and store a new Ed25519 keypair for a new
Ed25519VerificationKey2018
method.
PrivateEd25519(PrivateKey)
Store an existing Ed25519 private key and derive a public key from it for a new
Ed25519VerificationKey2018
method.
PublicEd25519(PublicKey)
Insert an existing Ed25519 public key into a new
Ed25519VerificationKey2018
method, without generating or storing a private key.
NOTE: the method will be unable to be used to sign anything without a private key.
GenerateX25519
Generate and store a new X25519 keypair for a new
X25519KeyAgreementKey2019
method.
PrivateX25519(PrivateKey)
Store an existing X25519 private key and derive a public key from it for a new
X25519KeyAgreementKey2019
method.
PublicX25519(PublicKey)
Insert an existing X25519 public key into a new
X25519KeyAgreementKey2019
method, without generating or storing a private key.
NOTE: the method will be unable to be used for key exchange without a private key.
Trait Implementations§
source§impl Clone for MethodContent
impl Clone for MethodContent
source§fn clone(&self) -> MethodContent
fn clone(&self) -> MethodContent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more