client

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetContractAddess added in v2.0.1

func SetContractAddess(network entity.Network, contractAddess string)

func SetProvider added in v2.0.1

func SetProvider(network entity.Network, provider string)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() Client

func (*Client) GenerateEciesKeyPair added in v2.0.2

func (c *Client) GenerateEciesKeyPair() (entity.KeyPair, error)

func (*Client) GenerateKeys

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

func (*Client) GenerateRsaKeyPair added in v2.0.2

func (c *Client) GenerateRsaKeyPair() (entity.KeyPair, error)

func (*Client) GetAnchor

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

func (*Client) GetProof

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

func (*Client) SendRecords

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

func (*Client) ValidateRoot

func (c *Client) ValidateRoot(root string, network entity.Network) (uint64, error)

func (*Client) VerifyProof

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

func (*Client) VerifyRecords

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

func (*Client) VerifyWebhookSignature added in v2.2.1

func (c *Client) VerifyWebhookSignature(payload []byte, header string, secretKey string, enforceTolerance bool) (bool, 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