Module dock_runtime::did

source ·

Modules

Structs

Enums

Traits

Type Definitions

  • Stores controlled - controller pairs of a DID as (DID, DID) -> zero-sized record. If a record exists, then the controller is bound.
  • Stores keys of a DID as (DID, IncId) -> DidKey. Does not check if the same key is being added multiple times to the same DID.
  • Stores nonce for did:key DIDs.
  • Stores service endpoints of a DID as (DID, endpoint id) -> ServiceEndpoint.
  • Stores details of off-chain and on-chain DIDs
  • ModuleDeprecated
    Type alias to Pallet, to be used by construct_runtime.
  • Raw DID representation.
  • Each on-chain DID is associated with a nonce that is incremented each time the DID does a write (through an extrinsic). The nonce starts from the block number when the DID was created to avoid replay attacks where an action of a DID that is removed and recreated by the same owner and same key is replayed by someone else.