transaction

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalTokenTransaction

func UnmarshalTokenTransaction(raw []byte) (*cb.ChannelHeader, *token.TokenTransaction, identity.PublicInfo, error)

Types

type Processor

type Processor struct {
	TMSManager TMSManager
}

Processor implements the interface 'github.com/hyperledger/fabric/core/ledger/customtx/Processor' for FabToken transactions

func (*Processor) GenerateSimulationResults

func (p *Processor) GenerateSimulationResults(txEnv *common.Envelope, simulator ledger.TxSimulator, initializingLedger bool) error

type TMSManager

type TMSManager interface {
	// GetTxProcessor returns a TxProcessor for TMS transactions for the provided channel
	GetTxProcessor(channel string) (TMSTxProcessor, error)
}

type TMSTxProcessor

type TMSTxProcessor interface {
	// ProcessTx parses ttx to generate a RW set
	ProcessTx(txID string, creator identity.PublicInfo, ttx *token.TokenTransaction, simulator ledger.LedgerWriter) error
}

TMSTxProcessor is used to generate the read-dependencies of a token transaction (read-set) along with the ledger updates triggered by that transaction (write-set); read-write sets are returned implicitly via the simulator object that is passed as parameter in the Commit function

type TxCreatorInfo

type TxCreatorInfo struct {
	// contains filtered or unexported fields
}

func (*TxCreatorInfo) Public

func (t *TxCreatorInfo) Public() []byte

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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