What is the relationship between assets created in a composer network to the assets in fabric chaincode?

后端 未结 2 843
耶瑟儿~
耶瑟儿~ 2021-01-25 22:27

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 runt

2条回答
  •  抹茶落季
    2021-01-25 22:43

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

    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 organises assets and participants into "registries", which are used to construct compound key names, keeping related assets together and preventing naming conflicts.

提交回复
热议问题