pub struct EntityKeypair {
pub entity_id: EntityId,
pub signing_key: SigningKey,
pub verifying_key: VerifyingKey,
}Expand description
An entity keypair (private + public key)
Fields§
§entity_id: EntityId§signing_key: SigningKey§verifying_key: VerifyingKeyImplementations§
Source§impl EntityKeypair
impl EntityKeypair
Sourcepub fn from_signing_key(signing_key: SigningKey) -> Result<Self>
pub fn from_signing_key(signing_key: SigningKey) -> Result<Self>
Create from an existing signing key
Sourcepub fn public_key_bytes(&self) -> &[u8] ⓘ
pub fn public_key_bytes(&self) -> &[u8] ⓘ
Get the public key bytes
Sourcepub fn to_entity(&self, entity_type: EntityType, name: String) -> Entity
pub fn to_entity(&self, entity_type: EntityType, name: String) -> Entity
Create an Entity from this keypair
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityKeypair
impl RefUnwindSafe for EntityKeypair
impl Send for EntityKeypair
impl Sync for EntityKeypair
impl Unpin for EntityKeypair
impl UnsafeUnpin for EntityKeypair
impl UnwindSafe for EntityKeypair
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