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/tw-bc-group/fabric-gm/core/ledger/customtx/Processor' for FabToken transactions
func (*Processor) GenerateSimulationResults ¶
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
Click to show internal directories.
Click to hide internal directories.