func UnmarshalTokenTransaction(raw []byte) (*cb.ChannelHeader, *token.TokenTransaction, identity.PublicInfo, error)
Processor implements the interface 'github.com/hyperledger/fabric/core/ledger/customtx/Processor' for FabToken transactions
type Processor struct {
TMSManager TMSManager
}
func (p *Processor) GenerateSimulationResults(txEnv *common.Envelope, simulator ledger.TxSimulator, initializingLedger bool) error
type TMSManager interface {
// GetTxProcessor returns a TxProcessor for TMS transactions for the provided channel
GetTxProcessor(channel string) (TMSTxProcessor, 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 TMSTxProcessor interface {
// ProcessTx parses ttx to generate a RW set
ProcessTx(txID string, creator identity.PublicInfo, ttx *token.TokenTransaction, simulator ledger.LedgerWriter) error
}
type TxCreatorInfo struct {
// contains filtered or unexported fields
}
func (t *TxCreatorInfo) Public() []byte