Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(ledger Ledger, dcas DCAS, operationStore OperationStore)
Start starts channel observer routines
Types ¶
type AnchorFile ¶
type AnchorFile struct { // BatchFileHash is encoded hash of the batch file BatchFileHash string `json:"batchFileHash"` // MerkleRoot is encoded root hash of the Merkle tree constructed from // the operations included in the batch file MerkleRoot string `json:"merkleRoot"` }
AnchorFile defines the schema of a Anchor File and its related operations.
type BatchFile ¶
type BatchFile struct { // Operations included in this batch file, each operation is an encoded string Operations []string `json:"operations"` }
BatchFile defines the schema of a Batch File and its related operations.
type Ledger ¶
type Ledger interface {
RegisterForSidetreeTxn() <-chan []SidetreeTxn
}
Ledger interface to access ledger txn
type OperationStore ¶
OperationStore interface to access operation store
type SidetreeTxn ¶
SidetreeTxn defines info about sidetree transaction
type TxnProcessor ¶
type TxnProcessor struct {
// contains filtered or unexported fields
}
TxnProcessor processes Sidetree transactions by persisting them to an operation store
func NewTxnProcessor ¶
func NewTxnProcessor(dcas DCAS, opStore OperationStore) *TxnProcessor
NewTxnProcessor returns a new document operation processor
func (*TxnProcessor) Process ¶
func (p *TxnProcessor) Process(sidetreeTxn SidetreeTxn) error
Process persists all of the operations for the given anchor
Click to show internal directories.
Click to hide internal directories.