Crate account

source ·
Expand description

The Ethereum Signature implementation.

It includes the Verify and IdentifyAccount traits for the AccountId20

Structs§

  • The account type to be used in Moonbeam. It is a wrapper for 20 fixed bytes. We prefer to use a dedicated type to prevent using arbitrary 20 byte arrays were AccountIds are expected. With the introduction of the scale-info crate this benefit extends even to non-Rust tools like Polkadot JS.
  • Public key for an Ethereum / Moonbeam compatible account

Constants§

  • System account size in bytes = Pallet_Name_Hash (16) + Storage_name_hash (16) + Blake2_128Concat (16) + AccountId (20) + AccountInfo (4 + 12 + AccountData (4* 16)) = 148

Traits§

  • A data structure that can be deserialized from any data format supported by Serde.
  • A data structure that can be deserialized without borrowing any data from the deserializer.
  • A data structure that can be serialized into any data format supported by Serde.

Derive Macros§