[][src]Trait node_rpc_runtime_api::identity::IdentityApi

pub trait IdentityApi<Block: BlockT, IdentityId, Ticker, AccountId, SecondaryKey, Signatory, Moment>: Core<Block> where
    IdentityId: Codec,
    Ticker: Codec,
    AccountId: Codec,
    SecondaryKey: Codec,
    Signatory: Codec,
    Moment: Codec, 
{ fn is_identity_has_valid_cdd(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        did: IdentityId,
        buffer_time: Option<u64>
    ) -> Result<CddStatus, Self::Error> { ... }
fn is_identity_has_valid_cdd_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        did: IdentityId,
        buffer_time: Option<u64>
    ) -> Result<CddStatus, Self::Error> { ... }
fn get_asset_did(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        ticker: Ticker
    ) -> Result<AssetDidResult, Self::Error> { ... }
fn get_asset_did_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        ticker: Ticker
    ) -> Result<AssetDidResult, Self::Error> { ... }
fn get_did_records(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        did: IdentityId
    ) -> Result<DidRecords<AccountId, SecondaryKey>, Self::Error> { ... }
fn get_did_records_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        did: IdentityId
    ) -> Result<DidRecords<AccountId, SecondaryKey>, Self::Error> { ... }
fn get_filtered_authorizations(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        signatory: Signatory,
        allow_expired: bool,
        auth_type: Option<AuthorizationType>
    ) -> Result<Vec<Authorization<AccountId, Moment>>, Self::Error> { ... }
fn get_filtered_authorizations_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        signatory: Signatory,
        allow_expired: bool,
        auth_type: Option<AuthorizationType>
    ) -> Result<Vec<Authorization<AccountId, Moment>>, Self::Error> { ... }
fn get_did_status(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        dids: Vec<IdentityId>
    ) -> Result<Vec<DidStatus>, Self::Error> { ... }
fn get_did_status_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        dids: Vec<IdentityId>
    ) -> Result<Vec<DidStatus>, Self::Error> { ... }
fn get_key_identity_data(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        acc: AccountId
    ) -> Result<Option<KeyIdentityData<IdentityId>>, Self::Error> { ... }
fn get_key_identity_data_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        acc: AccountId
    ) -> Result<Option<KeyIdentityData<IdentityId>>, Self::Error> { ... } }

Provided methods

fn is_identity_has_valid_cdd(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    did: IdentityId,
    buffer_time: Option<u64>
) -> Result<CddStatus, Self::Error>
[src]

Returns CDD status of an identity

fn is_identity_has_valid_cdd_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    did: IdentityId,
    buffer_time: Option<u64>
) -> Result<CddStatus, Self::Error>
[src]

Returns CDD status of an identity

fn get_asset_did(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    ticker: Ticker
) -> Result<AssetDidResult, Self::Error>
[src]

Returns DID of an asset

fn get_asset_did_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    ticker: Ticker
) -> Result<AssetDidResult, Self::Error>
[src]

Returns DID of an asset

fn get_did_records(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    did: IdentityId
) -> Result<DidRecords<AccountId, SecondaryKey>, Self::Error>
[src]

Retrieve DidRecord for a given did.

fn get_did_records_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    did: IdentityId
) -> Result<DidRecords<AccountId, SecondaryKey>, Self::Error>
[src]

Retrieve DidRecord for a given did.

fn get_filtered_authorizations(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    signatory: Signatory,
    allow_expired: bool,
    auth_type: Option<AuthorizationType>
) -> Result<Vec<Authorization<AccountId, Moment>>, Self::Error>
[src]

Retrieve list of a authorization for a given signatory

fn get_filtered_authorizations_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    signatory: Signatory,
    allow_expired: bool,
    auth_type: Option<AuthorizationType>
) -> Result<Vec<Authorization<AccountId, Moment>>, Self::Error>
[src]

Retrieve list of a authorization for a given signatory

fn get_did_status(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    dids: Vec<IdentityId>
) -> Result<Vec<DidStatus>, Self::Error>
[src]

Retrieve the status of the DID

fn get_did_status_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    dids: Vec<IdentityId>
) -> Result<Vec<DidStatus>, Self::Error>
[src]

Retrieve the status of the DID

fn get_key_identity_data(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    acc: AccountId
) -> Result<Option<KeyIdentityData<IdentityId>>, Self::Error>
[src]

Provide the KeyIdentityData from a given AccountId, including:

  • the corresponding DID,
  • whether the AccountId is a primary or secondary key,
  • any permissions related to the key.

This is an aggregate call provided for UX convenience.

fn get_key_identity_data_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    acc: AccountId
) -> Result<Option<KeyIdentityData<IdentityId>>, Self::Error>
[src]

Provide the KeyIdentityData from a given AccountId, including:

  • the corresponding DID,
  • whether the AccountId is a primary or secondary key,
  • any permissions related to the key.

This is an aggregate call provided for UX convenience.

Loading content...

Trait Implementations

impl<Block: BlockT, IdentityId, Ticker, AccountId, SecondaryKey, Signatory, Moment, __Sr_Api_Error__> RuntimeApiInfo for dyn IdentityApi<Block, IdentityId, Ticker, AccountId, SecondaryKey, Signatory, Moment, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...