Documentation ¶
Index ¶
- Variables
- type Proof
- func (m *Proof) Delete(key []byte) error
- func (*Proof) Descriptor() ([]byte, []int)
- func (m *Proof) Get(key []byte) ([]byte, error)
- func (m *Proof) GetKeys() [][]byte
- func (m *Proof) GetValues() [][]byte
- func (m *Proof) Has(key []byte) (bool, error)
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Put(key []byte, value []byte) error
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (m *Proof) Verify(rootHash common.Hash, key int) ([]byte, error)
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type Trie
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Proof ¶
type Proof struct { Keys [][]byte `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` }
func (*Proof) Descriptor ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) Verify ¶
Verify verifies the proof against the given root hash and key. Typically, the rootHash is from a trusted source (e.g. a trusted block header), and the key is the index of the transaction in the block.
func (*Proof) XXX_DiscardUnknown ¶
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶
func (*Proof) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.