{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package transaction\n\n## Functions\n\n```go\nfunc UnmarshalTokenTransaction(raw []byte) (*cb.ChannelHeader, *token.TokenTransaction, identity.PublicInfo, error)\n```\n\n## Types\n\n```go\ntype Processor struct {\n\tTMSManager TMSManager\n}\n```\nProcessor implements the interface 'github.com/hyperledger/fabric/core/ledger/customtx/Processor' for FabToken transactions\n\n```go\nfunc (p *Processor) GenerateSimulationResults(txEnv *common.Envelope, simulator ledger.TxSimulator, initializingLedger bool) error\n```\n\n```go\ntype TMSManager interface {\n\t// GetTxProcessor returns a TxProcessor for TMS transactions for the provided channel\n\tGetTxProcessor(channel string) (TMSTxProcessor, error)\n}\n```\n\n```go\ntype TMSTxProcessor interface {\n\t// ProcessTx parses ttx to generate a RW set\n\tProcessTx(txID string, creator identity.PublicInfo, ttx *token.TokenTransaction, simulator ledger.LedgerWriter) error\n}\n```\nTMSTxProcessor 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\n\n```go\ntype TxCreatorInfo struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (t *TxCreatorInfo) Public() []byte\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/token/transaction","name":"transaction","synopsis":"","isRedistributable":true}
