blockchain

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 7 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
}

Client implements blockchain client for writing anchors

func New

func New(channelID, chaincodeName, namespace string, txnProvider txnServiceProvider) *Client

New returns a new blockchain client

func (*Client) Read

func (c *Client) Read(sinceTransactionNumber int) (bool, *txn.SidetreeTxn)

Read ledger transaction

func (*Client) WriteAnchor

func (c *Client) WriteAnchor(anchor string, _ []*operation.Reference, protocolGenesisTime uint64) error

WriteAnchor writes anchor string to blockchain

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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