pub struct PseudonymKeypair {
pub public_key: PublicKey,
pub key_handle: KeyHandle,
}Expand description
A deterministic pseudonym keypair derived from an identity key and a context
ID via KeyCustody::derive_pseudonym.
The derivation algorithm is specified in ADR-006:
seed = HMAC-SHA256(identity_key_material, context_id || "scp-pseudonym")pseudonym_keypair = Ed25519_keygen(seed[0..32])
The returned keypair is always software-managed regardless of whether the source identity key is hardware-backed.
Fields§
§public_key: PublicKeyThe public key of the derived pseudonym.
key_handle: KeyHandleA handle to the derived pseudonym’s signing key, managed by the
KeyCustody implementation.
Trait Implementations§
Source§impl Clone for PseudonymKeypair
impl Clone for PseudonymKeypair
Source§fn clone(&self) -> PseudonymKeypair
fn clone(&self) -> PseudonymKeypair
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PseudonymKeypair
impl RefUnwindSafe for PseudonymKeypair
impl Send for PseudonymKeypair
impl Sync for PseudonymKeypair
impl Unpin for PseudonymKeypair
impl UnsafeUnpin for PseudonymKeypair
impl UnwindSafe for PseudonymKeypair
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