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§

source

type DsnpPrid

Return type of Prid

Required Methods§

source

fn create_prid( a: DsnpUserId, b: DsnpUserId, a_secret_key: &SecretKeyType, b_public_key: &PublicKeyType ) -> DsnpGraphResult<Self::DsnpPrid>

creates PRId from A -> B

source

fn create_shared_context( b: DsnpUserId, a_secret_key: &SecretKeyType, b_public_key: &PublicKeyType ) -> DsnpGraphResult<Key>

creates shared context from A -> B

Object Safety§

This trait is not object safe.

Implementors§