Documentation
¶
Index ¶
- func SetContractAddess(network entity.Network, contractAddess string)
- func SetProvider(network entity.Network, provider string)
- type Client
- func (c *Client) GenerateEciesKeyPair() (entity.KeyPair, error)
- func (c *Client) GenerateKeys() (entity.KeyPair, error)
- func (c *Client) GenerateRsaKeyPair() (entity.KeyPair, error)
- func (c *Client) GetAnchor(anchorID int64) (entity.Anchor, error)
- func (c *Client) GetProof(records []entity.Record) (entity.Proof, error)
- func (c *Client) SendRecords(records []entity.Record) ([]entity.RecordReceipt, error)
- func (c *Client) ValidateRoot(root string, network entity.Network) (uint64, error)
- func (c *Client) VerifyProof(proof entity.Proof) (string, error)
- func (c *Client) VerifyRecords(records []entity.Record, params entity.NetworkParams) (uint64, error)
- func (c *Client) VerifyWebhookSignature(payload []byte, header string, secretKey string, enforceTolerance bool) (bool, error)
- func (c *Client) WaitAnchor(anchorID int64, params entity.AnchorParams) (entity.Anchor, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetContractAddess ¶ added in v2.0.1
func SetProvider ¶ added in v2.0.1
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GenerateEciesKeyPair ¶ added in v2.0.2
func (*Client) GenerateRsaKeyPair ¶ added in v2.0.2
func (*Client) SendRecords ¶
func (*Client) ValidateRoot ¶
func (*Client) VerifyRecords ¶
func (*Client) VerifyWebhookSignature ¶ added in v2.2.1
func (*Client) WaitAnchor ¶
Click to show internal directories.
Click to hide internal directories.