Documentation ¶
Index ¶
- type DBClient
- func (c *DBClient) CommitChangeProof(ctx context.Context, proof *merkledb.ChangeProof) error
- func (c *DBClient) CommitRangeProof(ctx context.Context, startKey []byte, proof *merkledb.RangeProof) error
- func (c *DBClient) GetChangeProof(ctx context.Context, startRootID ids.ID, endRootID ids.ID, startKey []byte, ...) (*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 []byte, ...) (*merkledb.RangeProof, error)
- func (c *DBClient) VerifyChangeProof(ctx context.Context, proof *merkledb.ChangeProof, startKey []byte, ...) error
- type DBServer
- 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.ChangeProof, 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.ChangeProof, 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.