Documentation ¶
Index ¶
- Constants
- func ConvertV3toV2(v []byte) ([]byte, error)
- func DecodeIncarnationFromStorage(enc []byte) (uint64, error)
- func DeserialiseV3(a *Account, enc []byte) error
- func IsEmptyCodeHash(codeHash libcommon.Hash) bool
- func SerialiseV3(a *Account) []byte
- func SerialiseV3Len(a *Account) (l int)
- func SerialiseV3To(a *Account, value []byte)
- type AccProofResult
- type Account
- func (a *Account) Copy(image *Account)
- func (a *Account) DecodeForHashing(enc []byte) error
- func (a *Account) DecodeForStorage(enc []byte) error
- func (a *Account) DecodeRLP(s *rlp.Stream) error
- func (a *Account) EncodeForHashing(buffer []byte)
- func (a *Account) EncodeForStorage(buffer []byte)
- func (a *Account) EncodeRLP(w io.Writer) error
- func (a *Account) EncodingLengthForHashing() uint
- func (a *Account) EncodingLengthForStorage() uint
- func (a *Account) Equals(acc *Account) bool
- func (a *Account) GetIncarnation() uint64
- func (a *Account) IsEmptyCodeHash() bool
- func (a *Account) IsEmptyRoot() bool
- func (a *Account) Reset()
- func (a *Account) SelfCopy() *Account
- func (a *Account) SetIncarnation(v uint64)
- type StorProofResult
Constants ¶
View Source
const ( MimetypeDataWithValidator = "data/validator" MimetypeTypedData = "data/typed" MimetypeClique = "application/x-clique-header" MimetypeBor = "application/x-bor-header" MimetypeTextPlain = "text/plain" )
Variables ¶
This section is empty.
Functions ¶
func ConvertV3toV2 ¶
func DeserialiseV3 ¶
DeserialiseV3 - method to deserialize accounts in Erigon22 history
func IsEmptyCodeHash ¶
func SerialiseV3 ¶
func SerialiseV3Len ¶
func SerialiseV3To ¶
Types ¶
type AccProofResult ¶
type AccProofResult struct { Address libcommon.Address `json:"address"` AccountProof []hexutility.Bytes `json:"accountProof"` Balance *hexutil.Big `json:"balance"` CodeHash libcommon.Hash `json:"codeHash"` Nonce hexutil.Uint64 `json:"nonce"` StorageHash libcommon.Hash `json:"storageHash"` StorageProof []StorProofResult `json:"storageProof"` }
Result structs for GetProof
type Account ¶
type Account struct { Initialised bool Nonce uint64 Balance uint256.Int Root libcommon.Hash // merkle root of the storage trie CodeHash libcommon.Hash // hash of the bytecode Incarnation uint64 }
Account is the Ethereum consensus representation of accounts. These objects are stored in the main account trie. DESCRIBED: docs/programmers_guide/guide.md#ethereum-state
func (*Account) Copy ¶
Copy makes `a` a full, independent (meaning that if the `image` changes in any way, it does not affect `a`) copy of the account `image`.
func (*Account) DecodeForHashing ¶
func (*Account) DecodeForStorage ¶
func (*Account) EncodeForHashing ¶
func (*Account) EncodeForStorage ¶
func (*Account) EncodingLengthForHashing ¶
func (*Account) EncodingLengthForStorage ¶
func (*Account) GetIncarnation ¶
func (*Account) IsEmptyCodeHash ¶
func (*Account) IsEmptyRoot ¶
func (*Account) SetIncarnation ¶
type StorProofResult ¶
Click to show internal directories.
Click to hide internal directories.