Skip to content

DipProvider


Calls


commit_identity

See [Pallet::commit_identity].

Attributes

Name Type
identifier T::Identifier
version Option<IdentityCommitmentVersion>

Python

call = substrate.compose_call(
    'DipProvider', 'commit_identity', {
    'identifier': 'AccountId',
    'version': (None, 'u16'),
}
)

delete_identity_commitment

See [Pallet::delete_identity_commitment].

Attributes

Name Type
identifier T::Identifier
version Option<IdentityCommitmentVersion>

Python

call = substrate.compose_call(
    'DipProvider', 'delete_identity_commitment', {
    'identifier': 'AccountId',
    'version': (None, 'u16'),
}
)

Events


VersionedIdentityCommitted

A new commitment has been stored.

Attributes

Name Type Composition
identifier T::Identifier AccountId
commitment IdentityCommitmentOf<T> scale_info::12
version IdentityCommitmentVersion u16

VersionedIdentityDeleted

A commitment has been deleted.

Attributes

Name Type Composition
identifier T::Identifier AccountId
version IdentityCommitmentVersion u16

Storage functions


IdentityCommitments

The pallet contains a single storage element, the IdentityCommitments double map. Its first key is the Identifier of subjects, while the second key is the commitment version. The values are identity commitments.

Python

result = substrate.query(
    'DipProvider', 'IdentityCommitments', ['AccountId', 'u16']
)

Return value

'scale_info::12'

Errors


CommitmentNotFound

The specified commitment cannot be found.


Hook

Error inside the external hook logic.


IdentityCommitmentGenerator

Error when generating a commitment for the retrieved identity.


IdentityProvider

Error when retrieving the identity details of the provided subject.