Struct ockam_entity::ProfileState
source · [−]pub struct ProfileState { /* private fields */ }
Expand description
Profile implementation
Implementations
Get Secret
key. Key is uniquely identified by label in KeyAttributes
pub async fn create_auth_proof(
&mut self,
channel_state: &[u8]
) -> Result<AuthenticationProof>
pub async fn create_auth_proof(
&mut self,
channel_state: &[u8]
) -> Result<AuthenticationProof>
Generate Proof of possession of Profile
.
channel_state should be tied to channel’s cryptographical material (e.g. h value for Noise XX)
Verify Proof of possession of Profile
with given ProfileIdentifier
.
channel_state should be tied to channel’s cryptographical material (e.g. h value for Noise XX)
Verify whole event chain of current Profile
pub async fn verify_and_update_contact(
&mut self,
contact_id: &ProfileIdentifier,
change_events: &[ProfileChangeEvent]
) -> Result<bool>
Auto Trait Implementations
impl !RefUnwindSafe for ProfileState
impl Send for ProfileState
impl Sync for ProfileState
impl Unpin for ProfileState
impl !UnwindSafe for ProfileState
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more