client

package
v2.0.0-beta.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 6 Imported by: 0

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
}

func NewClient

func NewClient() Client

func (*Client) GenerateKeys

func (c *Client) GenerateKeys() (entity.Keys, error)

func (*Client) GetAnchor

func (c *Client) GetAnchor(anchorID int64) (entity.Anchor, error)

func (*Client) GetProof

func (c *Client) GetProof(records []string) (entity.Proof, error)

func (*Client) SendRecords

func (c *Client) SendRecords(records []string) ([]entity.RecordReceipt, error)

func (*Client) ValidateRoot

func (c *Client) ValidateRoot(root string, params entity.NetworkParams) (uint64, error)

func (*Client) VerifyProof

func (c *Client) VerifyProof(proof entity.Proof) (string, error)

func (*Client) VerifyRecords

func (c *Client) VerifyRecords(records []string, params entity.NetworkParams) (uint64, error)

func (*Client) WaitAnchor

func (c *Client) WaitAnchor(anchorID int64, params entity.AnchorParams) (entity.Anchor, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL