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
}
处理器实现接口“github.com/hyperledger/fabric/core/ledger/customtx/processor” 用于FabToken交易
func (*Processor) GenerateSimulationResults ¶
type TMSManager ¶
type TMSManager interface { //gettxprocessor返回所提供通道的TMS事务的TxProcessor GetTxProcessor(channel string) (TMSTxProcessor, error) }
type TMSTxProcessor ¶
type TMSTxProcessor interface { //processtx解析ttx以生成rw集 ProcessTx(txID string, creator identity.PublicInfo, ttx *token.TokenTransaction, simulator ledger.LedgerWriter) error }
tmstxprocessor用于生成令牌事务的读取依赖项 (读取集)以及该事务触发的分类帐更新 (写入集);读写集通过模拟器对象隐式返回 在提交函数中作为参数传递的
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.