common

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnchorPrefix is the prefix that is that is used to persist anchors
	AnchorPrefix = "sidetreeanchor_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainClientProvider added in v0.1.1

type BlockchainClientProvider interface {
	ForChannel(channelID string) (bcclient.Blockchain, error)
}

BlockchainClientProvider provides a blockchain client for a given channel

type DCASClientProvider added in v0.1.1

type DCASClientProvider interface {
	GetDCASClient(channelID string, namespace string, coll string) (dcasclient.DCAS, error)
}

DCASClientProvider is a DCAS client provider

type GossipProvider added in v0.1.4

type GossipProvider interface {
	GetGossipService() gossipapi.GossipService
}

GossipProvider is a Gossip service provider

type OffLedgerClientProvider added in v0.1.1

type OffLedgerClientProvider interface {
	ForChannel(channelID string) (client.OffLedger, error)
}

OffLedgerClientProvider is an off-ledger client provider

type TxnInfo added in v0.1.4

type TxnInfo struct {
	AnchorString string `json:"anchorString"`
	Namespace    string `json:"namespace"`
	// ProtocolGenesisTime is the genesis time of the protocol that was used to create the anchor
	ProtocolGenesisTime uint64 `json:"protocolGenesisTime"`
}

TxnInfo contains info that gets recorded on blockchain as part of Sidetree transaction

Jump to

Keyboard shortcuts

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