Expand description
The Ethereum Signature implementation.
It includes the Verify and IdentifyAccount traits for the AccountId20
Structs§
- Account
Id20 - 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-infocrate this benefit extends even to non-Rust tools like Polkadot JS. - Ethereum
Signature - Ethereum
Signer - 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.
- Deserialize
Owned - 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.