@ethereumjs/statemanager
Ƭ AccessedStateWithAddress: AccessedState
& { address
: Address
; chunkKey
: PrefixedHexString
}
Ƭ Proof: Object
Name | Type |
---|---|
accountProof |
PrefixedHexString [] |
address |
PrefixedHexString |
balance |
PrefixedHexString |
codeHash |
PrefixedHexString |
nonce |
PrefixedHexString |
storageHash |
PrefixedHexString |
storageProof |
StorageProof [] |
Ƭ StorageProof: Object
Name | Type |
---|---|
key |
PrefixedHexString |
proof |
PrefixedHexString [] |
value |
PrefixedHexString |
• Const
BALANCE_LEAF_KEY: Uint8Array
• Const
CODEHASH_PREFIX: Uint8Array
Prefix to distinguish between a contract deployed with code 0x80
and RLP([])
(also having the value 0x80
).
Otherwise the creation of the code hash for the 0x80
contract
will be the same as the hash of the empty trie which leads to
misbehaviour in the underlying trie library.
• Const
CODE_KECCAK_LEAF_KEY: Uint8Array
• Const
CODE_OFFSET: 128
• Const
CODE_SIZE_LEAF_KEY: Uint8Array
• Const
HEADER_STORAGE_OFFSET: 64
• Const
MAIN_STORAGE_OFFSET: bigint
• Const
NONCE_LEAF_KEY: Uint8Array
• Const
VERKLE_NODE_WIDTH: 256
• Const
VERSION_LEAF_KEY: Uint8Array
Tree key constants.
▸ decodeAccessedState(treeIndex
, chunkIndex
): AccessedState
Name | Type |
---|---|
treeIndex |
number | bigint |
chunkIndex |
number |
AccessedState
▸ decodeValue(type
, value
): string
Name | Type |
---|---|
type |
VerkleAccessedStateType |
value |
null | string |
string
▸ getTreeIndexesForStorageSlot(storageKey
): Object
Name | Type |
---|---|
storageKey |
bigint |
Object
Name | Type |
---|---|
subIndex |
number |
treeIndex |
bigint |
▸ getTreeIndicesForCodeChunk(chunkId
): Object
Name | Type |
---|---|
chunkId |
number |
Object
Name | Type |
---|---|
subIndex |
number |
treeIndex |
number |