pub trait PridProvider {
type DsnpPrid;
// Required methods
fn create_prid(
a: DsnpUserId,
b: DsnpUserId,
a_secret_key: &SecretKeyType,
b_public_key: &PublicKeyType
) -> DsnpGraphResult<Self::DsnpPrid>;
fn create_shared_context(
b: DsnpUserId,
a_secret_key: &SecretKeyType,
b_public_key: &PublicKeyType
) -> DsnpGraphResult<Key>;
}
Expand description
a trait that implements the PRI related algorithm
Required Associated Types§
Required Methods§
sourcefn create_prid(
a: DsnpUserId,
b: DsnpUserId,
a_secret_key: &SecretKeyType,
b_public_key: &PublicKeyType
) -> DsnpGraphResult<Self::DsnpPrid>
fn create_prid( a: DsnpUserId, b: DsnpUserId, a_secret_key: &SecretKeyType, b_public_key: &PublicKeyType ) -> DsnpGraphResult<Self::DsnpPrid>
creates PRId from A -> B
creates shared context from A -> B
Object Safety§
This trait is not object safe.