Documentation ¶
Overview ¶
Copyright 2018-2019 The trust-net Authors Endorsement Layer interface and implementation for DLT Statck
Index ¶
Constants ¶
View Source
const ( SUCCESS int = iota ERR_DUPLICATE ERR_DOUBLE_SPEND ERR_ORPHAN ERR_INVALID )
Variables ¶
This section is empty.
Functions ¶
func GenesisSubmitterTx ¶
func GenesisSubmitterTx(submitterId []byte) dto.Transaction
func NewEndorser ¶
Types ¶
type Endorser ¶
type Endorser interface { // validate submitter's transaction request details Validate(req *dto.TxRequest) error // Handle network transaction Handle(tx dto.Transaction) (int, error) // Replace submitter history Replace(tx dto.Transaction) error // Approve submitted transaction Approve(tx dto.Transaction) error // Update submitter history for transaction Update(tx dto.Transaction) error // Provide all known shard/tx pairs for a submitter/seq KnownShardsTxs(submitter []byte, seq uint64) (shards [][]byte, txs [][64]byte) }
Click to show internal directories.
Click to hide internal directories.