Module common_primitives::node
source · Expand description
Node level primitives.
Modules
- Generic implementations of [
crate::traits::Header
], [crate::traits::Block
] and [crate::traits::Extrinsic
].
Structs
- Blake2-256 Hash implementation.
- Simple blob to hold an extrinsic without committing to its format and ensure it is serialized correctly.
Enums
- Reason why a dispatch call failed.
- A multi-format address wrapper for on-chain accounts.
- Signature verify that can work with any known signature types.
Traits
- Some type that is able to be collapsed into an account ID. It is not possible to recreate the original value from the account ID.
- The provider of a collective action interface, for example an instance of
pallet-collective
. - The provider for interfacing into the Utility pallet.
- Means of signature verification.
Type Aliases
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- The address format for describing accounts.
- Balance is a generic type for the balance of an account.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- An index to a block.
- A hash of some data used by the chain.
- Block header type as expected by this runtime.
- Index of a transaction in the chain.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.