Type Alias IdentityEvent

Source
pub type IdentityEvent = IdentityEvent<AccountId, u64>;

Aliased Type§

enum IdentityEvent {
Show 21 variants DidCreated(IdentityId, AccountId, Vec<SecondaryKey<AccountId>>), SecondaryKeysAdded(IdentityId, Vec<SecondaryKey<AccountId>>), SecondaryKeysRemoved(IdentityId, Vec<AccountId>), SecondaryKeyLeftIdentity(IdentityId, AccountId), SecondaryKeyPermissionsUpdated(IdentityId, AccountId, Permissions, Permissions), PrimaryKeyUpdated(IdentityId, AccountId, AccountId), ClaimAdded(IdentityId, IdentityClaim), ClaimRevoked(IdentityId, IdentityClaim), AssetDidRegistered(IdentityId, Ticker), AuthorizationAdded(IdentityId, Option<IdentityId>, Option<AccountId>, u64, AuthorizationData<AccountId>, Option<u64>), AuthorizationRevoked(Option<IdentityId>, Option<AccountId>, u64), AuthorizationRejected(Option<IdentityId>, Option<AccountId>, u64), AuthorizationConsumed(Option<IdentityId>, Option<AccountId>, u64), AuthorizationRetryLimitReached(Option<IdentityId>, Option<AccountId>, u64), CddRequirementForPrimaryKeyUpdated(bool), CddClaimsInvalidated(IdentityId, u64), SecondaryKeysFrozen(IdentityId), SecondaryKeysUnfrozen(IdentityId), CustomClaimTypeAdded(IdentityId, CustomClaimTypeId, Vec<u8>), ChildDidCreated(IdentityId, IdentityId, AccountId), ChildDidUnlinked(IdentityId, IdentityId, IdentityId),
}

Variants§

§

DidCreated(IdentityId, AccountId, Vec<SecondaryKey<AccountId>>)

Identity created.

(DID, primary key, secondary keys)

§

SecondaryKeysAdded(IdentityId, Vec<SecondaryKey<AccountId>>)

Secondary keys added to identity.

(DID, new keys)

§

SecondaryKeysRemoved(IdentityId, Vec<AccountId>)

Secondary keys removed from identity.

(DID, the keys that got removed)

§

SecondaryKeyLeftIdentity(IdentityId, AccountId)

A secondary key left their identity.

(DID, secondary key)

§

SecondaryKeyPermissionsUpdated(IdentityId, AccountId, Permissions, Permissions)

Secondary key permissions updated.

(DID, updated secondary key, previous permissions, new permissions)

§

PrimaryKeyUpdated(IdentityId, AccountId, AccountId)

Primary key of identity changed.

(DID, old primary key account ID, new ID)

§

ClaimAdded(IdentityId, IdentityClaim)

Claim added to identity.

(DID, claim)

§

ClaimRevoked(IdentityId, IdentityClaim)

Claim revoked from identity.

(DID, claim)

§

AssetDidRegistered(IdentityId, Ticker)

Asset’s identity registered.

(Asset DID, ticker)

§

AuthorizationAdded(IdentityId, Option<IdentityId>, Option<AccountId>, u64, AuthorizationData<AccountId>, Option<u64>)

New authorization added.

(authorised_by, target_did, target_key, auth_id, authorization_data, expiry)

§

AuthorizationRevoked(Option<IdentityId>, Option<AccountId>, u64)

Authorization revoked by the authorizer.

(authorized_identity, authorized_key, auth_id)

§

AuthorizationRejected(Option<IdentityId>, Option<AccountId>, u64)

Authorization rejected by the user who was authorized.

(authorized_identity, authorized_key, auth_id)

§

AuthorizationConsumed(Option<IdentityId>, Option<AccountId>, u64)

Authorization consumed.

(authorized_identity, authorized_key, auth_id)

§

AuthorizationRetryLimitReached(Option<IdentityId>, Option<AccountId>, u64)

Accepting Authorization retry limit reached.

(authorized_identity, authorized_key, auth_id)

§

CddRequirementForPrimaryKeyUpdated(bool)

CDD requirement for updating primary key changed.

(new_requirement)

§

CddClaimsInvalidated(IdentityId, u64)

CDD claims generated by IdentityId (a CDD Provider) have been invalidated from Moment.

(CDD provider DID, disable from date)

§

SecondaryKeysFrozen(IdentityId)

All Secondary keys of the identity ID are frozen.

(DID)

§

SecondaryKeysUnfrozen(IdentityId)

All Secondary keys of the identity ID are unfrozen.

(DID)

§

CustomClaimTypeAdded(IdentityId, CustomClaimTypeId, Vec<u8>)

A new CustomClaimType was added.

(DID, id, Type)

§

ChildDidCreated(IdentityId, IdentityId, AccountId)

Child identity created.

(Parent DID, Child DID, primary key)

§

ChildDidUnlinked(IdentityId, IdentityId, IdentityId)

Child identity unlinked from parent identity.

(Caller DID, Parent DID, Child DID)