本文介绍了在作曲家网络中创建的资产与结构链码中的资产之间有什么关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在结构运行时中如何表示作曲家网络.在composer网络中创建的资产实例是否与在实际Fabric运行时中创建的资产具有一一对应的关系?

How do composer network represented in fabric runtime. Is the assets instances created in composer network have one to one relationship with assets created in actual fabric runtime?

推荐答案

Fabric没有资产的概念-它使用键/值存储(LevelDB)或可以使用CouchDB(JSON存储).

Fabric doesn't have the concept of assets -- it uses a key/value store (LevelDB) or can use CouchDB (JSON store).

处理Composer事务(与Fabric的invokeChaincode事务相对应)时,创建的任何资产都将作为新键存储在键值存储中,或文档存储在JSON存储中.

When a Composer transaction is processed (which corresponds to an invokeChaincode transaction for Fabric), any assets that are created are stored as new keys in the key-value store, or documents in the JSON store.

Composer将资产和参与者组织到注册表"中,用于构造复合键名称,将相关资产保持在一起并防止命名冲突.

Composer organises assets and participants into "registries", which are used to construct compound key names, keeping related assets together and preventing naming conflicts.

这篇关于在作曲家网络中创建的资产与结构链码中的资产之间有什么关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 18:29