Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidProofType = errors.New("invalid proof encoding type")
)
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes []byte
func (Bytes) MarshalText ¶
MarshalText implements encoding.TextMarshaler
func (*Bytes) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Slice ¶
type Slice [][]byte
func (Slice) MarshalJSON ¶
MarshalJSON implements encoding.TextMarshaler
func (*Slice) UnmarshalJSON ¶
UnmarshalJSON implements encoding.TextUnmarshaler.
type StorageProof ¶
type StorageProof struct { Height *big.Int `json:"height"` Address common.Address `json:"address"` Balance *hexutil.Big `json:"balance"` CodeHash common.Hash `json:"codeHash"` Nonce hexutil.Uint64 `json:"nonce"` StateRoot common.Hash `json:"stateRoot"` StorageHash common.Hash `json:"storageHash"` AccountProof Slice `json:"accountProof"` StorageProof []StorageResult `json:"storageProof"` }
type StorageResult ¶
type StorageResult struct { Key Bytes `json:"key"` Value Bytes `json:"value"` Proof Slice `json:"proof"` }
StorageResult is an object from StorageProof that contains a proof of storage.
Click to show internal directories.
Click to hide internal directories.