Chaincode namespace
チェインコードネームスペース
Audience: Architects, application and smart contract developers, administrators
登場人物:アーキテクト、アプリケーションとスマート契約開発者、アドミニストレーター
A chaincode namespace allows it to keep its world state separate from other chaincodes. Specifically, smart contracts in the same chaincode share direct access to the same world state, whereas smart contracts in different chaincodes cannot directly access each other’s world state. If a smart contract needs to access another chaincode world state, it can do this by performing a chaincode-to-chaincode invocation. Finally, a blockchain can contain transactions that relate to different world states.
チェインコード ネームスペースは、それがその世界の状態を他の チェインコードから分離しておくことを可能にします。 特に、同じ チェインコードでのスマート契約が同じ世界の状態に直接アクセスを共有するが、異なった チェインコードでのスマート契約が直接お互いの世界の状態にアクセスすることができません。 もしスマート契約がもう1つの チェインコード世界の状態にアクセスする必要があるなら、それは、 チェインコードから チェインコードへの呼び出しを行なうことによって、これをすることができます。 最終的に、ブロックチェーンが異なった世界の状態に関連しているトランザクションを含むことができます。
In this topic, we’re going to cover:
このトピックで、我々は次のことを含みます。:
l The importance of namespaces
ネームスペースの重要性
l What is a chaincode namespace
チェインコードネームスペースとは何か
l Channels and namespaces
チャンネルとネームスペース
l How to use chaincode namespaces
チェインコードネームスペースを使う方法
l How to access world states across smart contracts
複数のスマート契約に渡り複数の世界状態にアクセスする方法
l Design considerations for chaincode namespaces
チェインコードネームスペースのための設計考察
Motivation
動機づけ
A namespace is a common concept. We understand that Park Street, New York and Park Street, Seattle are different streets even though they have the same name. The city forms a namespace for Park Street, simultaneously providing freedom and clarity.
ネームスペースは共通の概念です。 我々は、それらが同名を持っているけれども、ニューヨークの公園通りとシアトルの公園通りが異なった道路と理解します。 市は、同時に自由と明快さを提供して、公園通りのネームスペースを形成します。
It’s the same in a computer system. Namespaces allow different users to program and operate different parts of a shared system, without getting in each other’s way. Many programming languages have namespaces so that programs can freely assign unique identifiers, such as variable names, without worrying about other programs doing the same. We’ll see that Hyperledger Fabric uses namespaces to help smart contracts keep their ledger world state separate from other smart contracts.
それは計算機システムで同じです。 ネームスペースは異なったユーザーが、お互いの方法に入らないで、共有されたシステムの異なった部分をプログラムして、そして操作することを可能にします。 多くのプログラム言語が、プログラムが同じことをして他のプログラムについて心配しないで自由に、変数名のような、一意な識別子を割り当てることができるように、ネームスペースを持っています。 我々は ハイパー元帳 ファブリックがネームスペースをスマート契約がそれらの元帳世界の状態を他のスマート契約から分離しておく助けとなるように使うのを見るでしょう。
=========================
インターネット・コンピュータランキング
=========================
ネットサービスランキング
=========================