Module dock_runtime::common

source ·

Modules

Structs

Enums

  • An abstraction for a signature.
  • Either DispatchError or DispatchErrorWithPostInfo.
  • Authorization logic containing rules to modify some data entity.
  • An error occurred during Policy validation.
  • An abstraction for a public key. Abstracts the type and value of the public key where the value is a byte array
  • An abstraction for a signature.
  • Any state change that needs to be signed is first wrapped in this enum and then its serialized. This is done to make it unambiguous which command was intended as the SCALE codec’s not self describing. The enum variants are supposed to take care of replay protection by having a nonce or something else. A better approach would have been to make StateChange aware of nonce or nonces. There can be multiple nonces attached with a payload a multiple DIDs may take part in an action and they will have their own nonce. However this change will be a major disruption for now. Never change the order of variants in this enum
  • Defines version of the storage being used.

Constants

Traits

  • Signature that can authorize a signed action.
  • Authorizes action performed by Self over supplied target using given key.
  • Attempts to retrieve a key associated with the given entity.
  • All size limits for the dock-core encodable data structures.
  • Signature entity.
  • Converts the given entity to the state change.
  • Defines associated types used by dock-core.
  • All associated types and size limits for the encodable data structures used by the dock-core.

Functions