pub struct IdentityRoot {
pub identity_id: CredentialId,
pub subject_commitment: [u8; 32],
pub controller: Address,
pub additional_controllers: Vec<Address>,
pub keys: Vec<IdentityKey>,
pub services: Vec<ServiceEndpoint>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub status: IdentityStatus,
pub schema_hash: [u8; 32],
}Expand description
Identity Root record (DID-equivalent). Represents a self-sovereign identity with key binding and recovery.
Fields§
§identity_id: CredentialIdUnique identity ID (credential_id for this identity)
subject_commitment: [u8; 32]Subject commitment (privacy-preserving identity binding)
controller: AddressPrimary controller address (can update keys, add controllers)
additional_controllers: Vec<Address>Additional controller addresses (recovery, delegates)
keys: Vec<IdentityKey>Active public keys for this identity
services: Vec<ServiceEndpoint>Service endpoints (DID-style services)
created_at: TimestampCreation timestamp
updated_at: TimestampLast update timestamp
status: IdentityStatusIdentity status
schema_hash: [u8; 32]Schema hash for the identity structure
Trait Implementations§
Source§impl Clone for IdentityRoot
impl Clone for IdentityRoot
Source§fn clone(&self) -> IdentityRoot
fn clone(&self) -> IdentityRoot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdentityRoot
impl Debug for IdentityRoot
Source§impl<'de> Deserialize<'de> for IdentityRoot
impl<'de> Deserialize<'de> for IdentityRoot
Source§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
Source§impl PartialEq for IdentityRoot
impl PartialEq for IdentityRoot
Source§fn eq(&self, other: &IdentityRoot) -> bool
fn eq(&self, other: &IdentityRoot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IdentityRoot
impl Serialize for IdentityRoot
impl Eq for IdentityRoot
impl StructuralPartialEq for IdentityRoot
Auto Trait Implementations§
impl Freeze for IdentityRoot
impl RefUnwindSafe for IdentityRoot
impl Send for IdentityRoot
impl Sync for IdentityRoot
impl Unpin for IdentityRoot
impl UnsafeUnpin for IdentityRoot
impl UnwindSafe for IdentityRoot
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