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.