Documentation ¶
Index ¶
- type DBClient
- func (c *DBClient) Clear() error
- func (c *DBClient) CommitChangeProof(ctx context.Context, proof *merkledb.ChangeProof) error
- func (c *DBClient) CommitRangeProof(ctx context.Context, startKey maybe.Maybe[[]byte], endKey maybe.Maybe[[]byte], ...) error
- func (c *DBClient) GetChangeProof(ctx context.Context, startRootID ids.ID, endRootID ids.ID, ...) (*merkledb.ChangeProof, error)
- func (c *DBClient) GetMerkleRoot(ctx context.Context) (ids.ID, error)
- func (c *DBClient) GetProof(ctx context.Context, key []byte) (*merkledb.Proof, error)
- func (c *DBClient) GetRangeProofAtRoot(ctx context.Context, rootID ids.ID, startKey maybe.Maybe[[]byte], ...) (*merkledb.RangeProof, error)
- func (c *DBClient) VerifyChangeProof(ctx context.Context, proof *merkledb.ChangeProof, startKey maybe.Maybe[[]byte], ...) error
- type DBServer
- func (s *DBServer) Clear(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (s *DBServer) CommitChangeProof(ctx context.Context, req *pb.CommitChangeProofRequest) (*emptypb.Empty, error)
- func (s *DBServer) CommitRangeProof(ctx context.Context, req *pb.CommitRangeProofRequest) (*emptypb.Empty, error)
- func (s *DBServer) GetChangeProof(ctx context.Context, req *pb.GetChangeProofRequest) (*pb.GetChangeProofResponse, error)
- func (s *DBServer) GetMerkleRoot(ctx context.Context, _ *emptypb.Empty) (*pb.GetMerkleRootResponse, error)
- func (s *DBServer) GetProof(ctx context.Context, req *pb.GetProofRequest) (*pb.GetProofResponse, error)
- func (s *DBServer) GetRangeProof(ctx context.Context, req *pb.GetRangeProofRequest) (*pb.GetRangeProofResponse, error)
- func (s *DBServer) VerifyChangeProof(ctx context.Context, req *pb.VerifyChangeProofRequest) (*pb.VerifyChangeProofResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
type DBClient struct {
// contains filtered or unexported fields
}
func NewDBClient ¶
func (*DBClient) CommitChangeProof ¶
func (*DBClient) CommitRangeProof ¶
func (*DBClient) GetChangeProof ¶
func (*DBClient) GetMerkleRoot ¶
func (*DBClient) GetRangeProofAtRoot ¶
type DBServer ¶
type DBServer struct { pb.UnsafeDBServer // contains filtered or unexported fields }
func NewDBServer ¶
func (*DBServer) CommitChangeProof ¶
func (*DBServer) CommitRangeProof ¶
func (*DBServer) GetChangeProof ¶
func (s *DBServer) GetChangeProof( ctx context.Context, req *pb.GetChangeProofRequest, ) (*pb.GetChangeProofResponse, error)
func (*DBServer) GetMerkleRoot ¶
func (*DBServer) GetProof ¶
func (s *DBServer) GetProof( ctx context.Context, req *pb.GetProofRequest, ) (*pb.GetProofResponse, error)
func (*DBServer) GetRangeProof ¶
func (s *DBServer) GetRangeProof( ctx context.Context, req *pb.GetRangeProofRequest, ) (*pb.GetRangeProofResponse, error)
func (*DBServer) VerifyChangeProof ¶
func (s *DBServer) VerifyChangeProof( ctx context.Context, req *pb.VerifyChangeProofRequest, ) (*pb.VerifyChangeProofResponse, error)
Click to show internal directories.
Click to hide internal directories.