blockchain

package
v0.0.0-...-f572f87 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 3 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 {
	sync.RWMutex
	// contains filtered or unexported fields
}

Client implements blockchain client for writing anchors.

func New

func New(namespace string, log txnLog) *Client

New returns a new blockchain client.

func (*Client) Read

func (c *Client) Read(time int64) ([]*txn.SidetreeTxn, error)

Read reads transactions since transaction time.

func (*Client) WriteAnchor

func (c *Client) WriteAnchor(anchor string, protocolGenesisTime uint64) error

WriteAnchor writes anchor string to blockchain.

Jump to

Keyboard shortcuts

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