Crate time_primitives

Source
Expand description

Low-level types used throughout the Substrate code.

Re-exports§

Modules§

Structs§

  • Re-export key and hash types Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
  • Re-export key and hash types Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
  • Re-export key and hash types Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.

Constants§

Traits§

Functions§

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.
  • Type used to represent balances
  • Opaque block type.
  • A hash to use to identify indivdual blocks.
  • Opaque block ID.
  • An index to a block.
  • Digest item type.
  • Block header type.
  • Type used for expressing timestamp.
  • Index of a transaction in the chain.
  • General Public Key used across the protocol
  • Alias to 512-bit hash when used in the context of a transaction signature on the chain.
  • A timestamp: milliseconds since the unix epoch. u64 is enough to represent a duration of half a billion years, when the time scale is milliseconds.