NEM LIFE

nem、xemに関する最新のニュースを翻訳してお届けします!

NEMカタパルト:ネームスペースとモザイクの理解

下記は以下原文を和訳したものです。
https://nemflash.io/nem-catapult-understanding-namespaces-mosaics/

NEMカタパルト:ネームスペースとモザイクの理解
ジュリアン 2019年5月21日

NEMフォーラムのディスカッションに参加してください!
NEMカタパルトのネームスペース、モザイク、アリアス
これは私たちのカタパルトシリーズからのカタパルトの機能のアップデートです。


アップデート:2019年5月13日
NEMの最近のアップデートはNEMブロックチェーンの運用を完全にするため、ネームスペースとモザイクの機能に実行されました。これらのアップデートは安全な事業要求に向かってさらに柔軟性と機能性を押し上げるでしょう。もちろん、私たちがNIS1 (NEMの現在のバージョン) からカタパルト (NEMの次なる核のエンジン)への変化の詳細をカバーする前に、手短にモザイクとネームスペースの機能が現在どれだけ活用しているかをレビューすることは役に立つかもしれません。

ネームスペース
ネームスペースはNEMアカウントアドレスを支持するテキスト列となっています。NEMアカウントの公共のドメイン名としてネームスペースは考えられています。例えば、 “dinosaurs”はNEMのアドレスNAAAAA-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXX. によって使われることが出来ます。NISIでのアカウントのためにネームスペースを作ったり、新しくしたりするための手数料は100XWMです。(この投稿ののこりを記し、「アドレス」と「アカウント」はNEMバースの中で本質的に等価なものとして相互に使われるでしょう。)

サブのネームスペース
ウェブドメインアナログ表示を続けることで、サブネームスペースはより大きなネームスペース内で分割されたカタログを限定するために、ウェブサイトのサブドメイン、例えばblog.shop.netを真似ています。例えば、サブスペースの “ornithischia”は“dinosaurs,”のもとに作られることが出来、そして“dinosaurs.ornithischia.”としてIn NIS1のようにNEMシンテックに書き出されるでしょう。 サブネームスペースはさらに彼ら自身のサブネームスペースを全部で3つ所持しています。すなわち、“dinosaurs.ornithischia.triceratops.” となります。サブネームスペースをやがてアカウントのために作る手数料は10 XEMです。.
モザイク
モザイクはNEMブロックチェーン上の定義化されたストリングネームアセットであり、ネームスペースにリンクされています。他のブロックチェーン上では、モザイクはまた「トークン」や「アセット」とも呼ばれています。NEMブロックチェーン上のモザイクの元来的な立ち位置は、モザイク、もしくはネームスペース、サブネームスペース、モザイクとしてネームスペースに書き出されています。例えば、“dinosaurs.ornithischia:fossils.”といったように書き出されています。In NIS1では、ネームスペースはモザイクの前に作成される必要がありました。ネームスペースの為のモザイクを作成する手数料は10XEMです。

カタパルトはもっとも新しい革新をブロックチェーンテクノロジーに加えて、その以前の繰り返しの達成を構築します。その重点は拡張性に置かれていますが、カタパルトはNEMプラットフォームに多大な向上をもたらすでしょう。ネームスペースとモザイクの変化に沿うことは、NEMをさらに便利に使いやすくします。

ネームスペースの登録
NIS1では、ネームスペースは一度始めたら取り消し不可の年間のレンタル契約を通してアカウントにリンクされることだけが出来ます。契約の1年の追割には、ネームスペースの所有者はネームスペースの所有権を残すために彼らの契約を更新しなければなりません。そしてサブネームスペースとモザイクを拡大します。もし契約切れの月中に更新されなければネームスペースに作成されたアセットは終了し、消えます。
NISIの契約では、ネームスペースクリエーターはカタパルトでのレンタル期間を選ぶことが出来ます。レジスターネームスペーストランザクションでは、クリエーターは希望された所有権のブロックの明確なナンバーを明記することが出来ます。レンタル期間中、それはネームスペースを借りるため余分に確認されたブロックを使って別の登録トランザクションを送ることによって、レンタルを拡張することも可能です。レンタル期間が終わるとき、ネームスペースは無効になります


モザイク登録
NIS1では、モザイクは, 明らかに登録されており、そして運用できるネームスペースにてだけお互いに作成されることが出来ます。カタパルトでは、モザイクはネームスペースなしで作成が可能です。例えば、モザイクはその同一性を利用することで、ランダム列で作成されることが可能です。そしてこれは(0dc67fbe1cad29e3)のようになります。
今やネームスペースから引き離されたモザイクは独立した契約期間を持っています。カタパルトは現バージョンでは作成出来ない、期限のないモザイクの制作を可能にします。

アカウントとモザイクによってネームスペースをリンクすること
NISIネームスペースにカタパルトが紹介した新しい機能はアリアスです。仮名はより簡単な参考のためにアカウントやモザイクに与えられたネームスペースから引用されています。
カタパルトでは、ユーザーはNEMアカウントとモザイクへのネームスペースとサブネームスペース(そして結果としてはアリアス)のアドレスへのリンクをNEM1では出来ないとされる規則の中で自由に管理することができます。アリアスとネームスペースの管理はアリアストランザクションを通じて発生します。そしてそれはアドレスアリアストランザクションやモザイクアリアストランザクションを含みます。新しい機能はNEMエコシステム内でユーザーに更なる柔軟性を与えます。あなたはアリアストランザクションを異なるアカウントにネームスペースを割り当てるスマートな契約としてとらえてみてください。そのため、それは簡単な馴染みやすいフォーマットによって、文字のランダム列の代わりに簡単に認知されることができます。
立証するために、Johnが登録したネームスペース“dinosaur(恐竜)” と“fossils(化石)”を述べてみましょう。そしてとあるアドレス (NBBBBB-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXX) とモザイク(ID:0dc67fbe1cad29e3)として彼らをそれぞれ関連付けてみましょう。カタパルトでは、Sallyは100 “0dc67fbe1cad29e3” to NBBBBB-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXX.を送るよりもさらに簡潔に100“fossils(化石)”をNEMウォレットの中の“dinosaur(恐竜)に送るための入力が出来ました。
エリアス接続は簡単に修正が可能です。モザイクIDはどんな登録ネームスペースでもリンクをつなげたり外したりできます。しかしながら、モザイクの創設者だけが基本的なセキュリティーで適任ということから、アリアスの関係性を編集することが出来ます。多数のネームスペースは単一のアドレスもしくはモザイクで関連付けられます。しかし、それぞれのネームスペースは特有でなければなりません。
結局、アリアスは別のブロックチェーンから公共のチェーンカタパルトを分けるNEM内で限定的な機能です。カタパルトでのアリアスとネームスペースはさらに簡単に、単純化し、そしてさらに安全なトランザクションプロセスによって公共のブロックチェーンユーザーに実践を促進します。ユーザーにとって同一化、ダブルチェック、分かりやすいコピーペースト、そして信頼のあるアリアスを長々しいアドレスよりもより簡単にするでしょう。


今、私たちが前述した全ての機能を兼ね備えた仮定的に、実用的な例を紹介させてください。Suppose a Cheryl Gonzalesの予想は、U.S.にあるSanta Frangelinaの市長になるためにPatricia Choiに対抗して動いているということです。Santa Frangelina の町は公共のNEMブロックチェーンを使用する彼らの自治体の選挙を実行することを決心しています。NEMのネームスペースはSanta Frangelina の市の自治体によって作成され、支持されています。 “Santa Frangelina,” とそれを支持する事、NEMのサブネームスペースである“Santa Frangelina.2019MunicipalMayoralElection”が作られています。2つのセカンドレベルのサブネームスペースはその後創始され、選挙の中でそれぞれの立候補者の代表とそれらは候補者へのアリアスとして与えられました。
アドレス:
SantaFrangelina.2019MunicipalMayoralElection.候補者のGonzales
アドレス:
SantaFrangelina.2019MunicipalMayoralElection.候補者のChoi
3番目のセカンドレベルのサブネームスペースは作成され、そのアリアスとしてモザイクに割り当てられました。
モザイク: SantaFrangelina.2019MunicipalMayoralElection.Vote
私たちは適正な投票者のアカウントへモザイクを交付することによって選挙を進める準備が現時点で出来ています。モザイク投票は作成され適当なネームスペースにリンクされ、そして全ての仮の投票者にシステム的に提出されます。投票者は彼らのお気に入りの候補者を選び投票する時間が与えられます。期限が過ぎれば、投票者はそれぞれの候補者のアドレスにて投票モザイクのバランスを確認しながらカウントされます。そして投票数の高いアドレスが選挙の勝者となります。.

カタパルトのアリアスがどれだけ採用されうるかという別の例としては、NCVG35-ZSPMYP-L2POZQ-JGSVEG-RYOJ3V-BNIU3U-N2E6というnemアドレスと名付けられたKelly という生徒がいることが仮定されます。会話全体のために、KellyはネームスペースをKelly99と登録し、通常に使用するために彼女のアドレスとそれをリンクするかもしれません。UCLAで彼女入学している時、その学校はUCLA.ID90703を彼女のために別のアリアスとして与えるでしょう。
UCLAのネームスペースはUCLAのエコシステムに特に興味を持つためにKellyのために使われるでしょう。彼女が卒業する時、ネームスペースは拡大され、別の入ってくる生徒たちにも自由に使われるよう準備されます。

これらのアップデートと共に、企業の性能のために、カタパルトは便利でパワフルな、そして柔軟性のある機能への気づきを続けます。開発者はブロックチェーンの最前線のその道のりでNEMを保ち続けます。そして更なるインプットと提案を機能拡大によってしっかりと許容し、NEMのソーシャルメディアのチャンネルを通してカタパルトの技術革新をも許容します。更なるデータと開発の発表を見逃すな。

参照:
https://nemtech.github.io/concepts/namespace.html
https://docs.nem.io/ja/nanowallet/mosaics
https://nemtech.github.io/guides/mosaic/creating-a-mosaic.html
https://nemtech.github.io/guides/namespace/link-a-namespace-to-an-address.html
https://nemtech.github.io/guides/namespace/link-a-namespace-to-a-mosaic.html
カタパルトの古いニュースの確認!



~~~以下原文~~~
NEM Catapult: Understanding Namespaces and Mosaics
BY JULIAN · MAY 21, 2019

Join the discussion in the NEM forum’s!
NEM Catapult Namespaces, Mosaics, Aliases
This is a Catapult features update from our Catapult Series
Link to the document can be found: here.
Translations: Spanish, Japanese, Italian, Russian
Updated: May 13, 2019
Recent updates in NEM have been implemented to the namespace and mosaic features integral to the NEM blockchain’s operations. These updates will further boost the flexibility and functionality of namespaces and mosaics to satisfy enterprise demands. Of course, before we cover the specifics of the changes from NIS1 (the current version of NEM) to Catapult (next NEM core engine), it may be useful to briefly review how the mosaic and namespace features currently work.
Namespace
A namespace is a text string that points to a NEM account address. One can think of it as a public domain name for a NEM account. For example, “dinosaurs” could be owned by a NEM address, NAAAAA-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXX. The fee to establish or renew a namespace for an account in NIS1 is 100 XEM. (Note that for the rest of this post, the words “addresses” and “accounts” will be used interchangeably, as they are essentially equivalent in the NEM-verse.)
Subnamespace
Continuing with the web domain analogy, subnamespaces resembles website subdomains, e.g. a blog.shop.net, to define separate categories within larger namespaces. For example, the subnamespace “ornithischia” could be established under “dinosaurs,” which would be written out in NEM syntax as “dinosaurs.ornithischia.” In NIS1, subnamespaces can additionally have their own subnamespaces, for up to three levels in total, i.e., “dinosaurs.ornithischia.triceratops.” The fee to establish a subnamespace for an account presently is 10 XEM.
Mosaic
A mosaic is a string-named asset defined on the NEM blockchain that is linked to a namespace. On other blockchains, mosaics are also called “tokens.” or “assets”. The originating location of a mosaic on the NEM blockchain would be written out as namespace: mosaic or namespace.subnamespace:mosaic, i.e. “dinosaurs.ornithischia:fossils.” In NIS1, the namespace needed to be created before the mosaic. The fee to create a mosaic for a namespace is presently 10 XEM.
Catapult builds on the achievements of its previous iteration, adding the newest innovations in blockchain technology. Its emphasis lies on scalability, but Catapult will bring overall improvement to the NEM platform. The following changes to namespaces and mosaics will make NEM more convenient and user-friendly.
Namespace registration
In NIS1, namespaces can only be linked to an account through an annual rental contract that is irreversible once initiated. At the end of the one year term, the owner of the namespace has to renew their contracts to retain their ownership of the root namespace and the corresponding subnamespaces and mosaics. If the contract is not renewed within a month of the deadline, assets created on top of the root namespace will expire and disappear.
In contrast to NIS1, namespace creators will be able to choose the renting duration in Catapult. In the RegisterNamespaceTransaction, the creator can specify the exact number of blocks of desired ownership. During the renting period, it will also be possible to extend the rental by sending another register transaction with the extra-confirmed block to rent the namespace. When a renting period ends, the namespace will become inactive.
Read more: Namespace
Mosaic registration
In NIS1, a mosaic can only be created in conjunction with a previously registered and active namespace. In Catapult, a mosaic can be created without a namespace. For instance, a mosaic could be created with a random set of characters that will be used as its identifier; this may look something like (0dc67fbe1cad29e3).
Mosaics, now detached from namespaces, have an independent expiration time. Catapult introduces the possibility to create mosaics that never expire, which is not possible in the current version.
Read more: Mosaic
Linking namespaces with accounts and mosaics
The new feature that Catapult introduces to build on NIS1 namespaces are aliases. An alias is derived from a namespace assigned to an account or mosaic for easier referencing.
In Catapult, users will be able to freely manage the linking of namespace and subnamespace addresses (and consequently, aliases) to NEM accounts and mosaics in a manner that is not possible in NEM1. The management of aliases and namespaces will occur through alias transactions, which will include AddressAliasTransaction or MosaicAliasTransaction functions. The new functions will give users added flexibility within the NEM ecosystem. You can think of an alias transaction as a smart contract that assigns the namespace to a different account so it can be recognized easily by an easily human readable format instead of a random string of characters.
To demonstrate, let’s say John registered the namespaces “dinosaur” and “fossils” and respectively associated them as aliases to an address (NBBBBB-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXX) and mosaic(ID:0dc67fbe1cad29e3). In Catapult, Sally could simply input to send 100 “fossils” to “dinosaur” in the NEM wallet interface rather than send 100 “0dc67fbe1cad29e3” to NBBBBB-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXX.
Alias connections can be easily modified. A mosaic ID may be linked and unlinked with any registered namespace. However, only the creators of the mosaics will be able to edit its alias relations, as is appropriate for basic security reasons. Multiple namespaces may be associated with a single address or mosaic, but each namespace must be unique.
Ultimately, aliases are a defining feature in NEM that will separate public chain Catapult from other blockchains. Aliases and namespaces in Catapult will advance the public blockchain user experience by facilitating easier, less confusing, and more secure transaction processes. It will be easier for users to identify, double-check, and copy-paste recognizable and trusted aliases, rather than lengthy addresses.
Read more: Alias
Examples
Now, let us present a hypothetical, practical example that puts together all the features we have described in the preceding paragraphs. Suppose a Cheryl Gonzales is running against a Patricia Choi to become Mayor of Santa Frangelina, a city in the U.S. The city of Santa Frangelina has decided to carry out their municipal elections using the public NEM blockchain. A root NEM namespace is created, associated with the municipal government of Santa Frangelina, “Santa Frangelina,” and following that, a NEM subnamespace “Santa Frangelina.2019MunicipalMayoralElection” is created. Two second-level subnamespaces are then initiated, one representing each candidate in the election and these are assigned as aliases to the candidates:
Address:
SantaFrangelina.2019MunicipalMayoralElection.CandidateGonzales
Address:
SantaFrangelina.2019MunicipalMayoralElection.CandidateChoi
A third second-level subnamespace is created and assigned to a mosaic as its alias.
Mosaic: SantaFrangelina.2019MunicipalMayoralElection.Vote
We are now ready to proceed with the election by instantiating and issuing mosaics to accounts of eligible voters. The vote mosaic is created, linked to an appropriate namespace, and handed out systematically to all eligible voters. The voters are given time to choose and vote for their preferred candidate. After the deadline has passed, the votes can be counted by checking the balance of the vote mosaics in the respective candidate’s addresses, and the address with a higher amount of votes will win the election.

For another example of how the adaptability of Catapult aliases can be employed, suppose there is a student named Kelly with a NEM address of NCVG35-ZSPMYP-L2POZQ-JGSVEG-RYOJ3V-BNIU3U-N2E6. For convenience’s sake, Kelly might register the namespace Kelly99 and link it to her address for general use. When she enrolls at UCLA, the school might assign UCLA.ID90703 as another alias to her account.
The UCLA namespace can be used for Kelly to specifically interact in the UCLA ecosystem. When she graduates, the namespace can be set to expire and is free to be used by another incoming student.

With these updates, Catapult continues to realize convenient, powerful, and flexible features for enterprise functionality. The developers intend to keep NEM on its path at the cutting edge of blockchain, and will eagerly receive additional input and suggestions on features expansion and technical implementation of Catapult across NEM’s social media channels. Do stay tuned for further updates and development announcements.
Link to the document can be found: here.
References:
https://nemtech.github.io/concepts/namespace.html
https://docs.nem.io/ja/nanowallet/mosaics
https://nemtech.github.io/guides/mosaic/creating-a-mosaic.html
https://nemtech.github.io/guides/namespace/link-a-namespace-to-an-address.html
https://nemtech.github.io/guides/namespace/link-a-namespace-to-a-mosaic.html
Check out previous news about Catapult!