Trait ockam_entity::ProfileAuth [−][src]
pub trait ProfileAuth {
fn generate_authentication_proof(
&mut self,
channel_state: &[u8]
) -> Result<Vec<u8>>;
fn verify_authentication_proof(
&mut self,
channel_state: &[u8],
responder_contact_id: &ProfileIdentifier,
proof: &[u8]
) -> Result<bool>;
}Expand description
Profile authentication support.
Required methods
Implementors
impl ProfileAuth for Entity[src]
impl ProfileAuth for Entity[src]impl ProfileAuth for ProfileSync[src]
impl ProfileAuth for ProfileSync[src]impl<V: ProfileVault> ProfileAuth for ProfileImpl<V>[src]
impl<V: ProfileVault> ProfileAuth for ProfileImpl<V>[src]fn generate_authentication_proof(
&mut self,
channel_state: &[u8]
) -> Result<Vec<u8>>[src]
fn generate_authentication_proof(
&mut self,
channel_state: &[u8]
) -> Result<Vec<u8>>[src]Generate Proof of possession of Profile.
channel_state should be tied to channel’s cryptographical material (e.g. h value for Noise XX)
fn verify_authentication_proof(
&mut self,
channel_state: &[u8],
responder_contact_id: &ProfileIdentifier,
proof: &[u8]
) -> Result<bool>[src]
fn verify_authentication_proof(
&mut self,
channel_state: &[u8],
responder_contact_id: &ProfileIdentifier,
proof: &[u8]
) -> Result<bool>[src]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)