Crate account

Source
Expand description

The Ethereum Signature implementation.

It includes the Verify and IdentifyAccount traits for the AccountId20

Structs§

AccountId20
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.
EthereumSignature
EthereumSigner
Public key for an Ethereum / Moonbeam compatible account

Constants§

SYSTEM_ACCOUNT_SIZE
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§

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

Derive Macros§

Deserialize
Serialize