Documentation ¶
Index ¶
- Constants
- type Server
- func (s *Server) GetEmptyLeafProof(ctx context.Context, req *merklegen.GetEmptyLeafProofRequest) (*merklegen.GetEmptyLeafProofResponse, error)
- func (s *Server) Proof(ctx context.Context, req *merklegen.QueryProofRequest) (*merklegen.QueryProofResponse, error)
- func (s *Server) RunGRPC(ctx context.Context, address string) error
- func (s *Server) RunGateway(ctx context.Context, address string) error
Constants ¶
View Source
const ( GrpcServerAddr = "localhost:50651" GatewayAddr = "localhost:8480" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { merklegen.UnimplementedQueryServer // contains filtered or unexported fields }
func (*Server) GetEmptyLeafProof ¶ added in v0.2.0
func (s *Server) GetEmptyLeafProof(ctx context.Context, req *merklegen.GetEmptyLeafProofRequest) (*merklegen.GetEmptyLeafProofResponse, error)
func (*Server) Proof ¶
func (s *Server) Proof(ctx context.Context, req *merklegen.QueryProofRequest) (*merklegen.QueryProofResponse, error)
Proof queries the proof of a leaf in the merkle tree.
Click to show internal directories.
Click to hide internal directories.