Crate primitive_types

source ·
Expand description

Primitive types shared by Substrate and Parity Ethereum.

Those are uint types U128, U256 and U512, and fixed hash types H160, H256 and H512, with optional serde serialization, parity-scale-codec and rlp encoding.

Structs

  • Fixed-size uninterpreted hash type with 16 bytes (128 bits) size.
  • Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
  • Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
  • Fixed-size uninterpreted hash type with 48 bytes (384 bits) size.
  • Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
  • Fixed-size uninterpreted hash type with 96 bytes (768 bits) size.
  • Little-endian large integer type 128-bit unsigned integer.
  • Little-endian large integer type 256-bit unsigned integer.
  • Little-endian large integer type 512-bits unsigned integer.

Enums

  • Error type for conversion.