Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps all the available endpoints of the data abailability committee node server
func (*Client) GetOffChainData ¶
GetOffChainData returns data based on it's hash
func (*Client) SignSequence ¶
func (c *Client) SignSequence(signedSequence types.SignedSequence) ([]byte, error)
SignSequence sends a request to sign the given sequence by the data committee member if successful returns the signature. The signature should be validated after using this method!
type ClientFactory ¶
type ClientFactory struct{}
ClientFactory is the implementation of the data committee client factory
func (*ClientFactory) New ¶
func (f *ClientFactory) New(url string) ClientInterface
New returns an implementation of the data committee node client
type ClientFactoryInterface ¶
type ClientFactoryInterface interface {
New(url string) ClientInterface
}
ClientFactoryInterface interface for the client factory
Click to show internal directories.
Click to hide internal directories.