Documentation
¶
Index ¶
- func NewServer(d da.DA, opts ...grpc.ServerOption) *grpc.Server
- type Client
- func (c *Client) Commit(blobs []da.Blob) ([]da.Commitment, error)
- func (c *Client) Get(ids []da.ID) ([]da.Blob, error)
- func (c *Client) GetIDs(height uint64) ([]da.ID, error)
- func (c *Client) MaxBlobSize() (uint64, error)
- func (c *Client) Start(target string, opts ...grpc.DialOption) (err error)
- func (c *Client) Stop() error
- func (c *Client) Submit(blobs []da.Blob, gasPrice float64) ([]da.ID, []da.Proof, error)
- func (c *Client) Validate(ids []da.ID, proofs []da.Proof) ([]bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a gRPC proxy client for DA interface.
func (*Client) MaxBlobSize ¶
MaxBlobSize returns the DA MaxBlobSize
func (*Client) Start ¶
func (c *Client) Start(target string, opts ...grpc.DialOption) (err error)
Start connects Client to target, with given options.
Click to show internal directories.
Click to hide internal directories.