diff --git a/content/_img-sources/ledger-object-ids.ja.uxf b/content/_img-sources/ledger-object-ids.ja.uxf new file mode 100644 index 0000000000..91f3bd8f39 --- /dev/null +++ b/content/_img-sources/ledger-object-ids.ja.uxf @@ -0,0 +1,587 @@ + + + 10 + + UMLClass + + 110 + 80 + 160 + 20 + + + + + + Text + + 110 + 40 + 100 + 30 + + キー入力 + + + + UMLClass + + 40 + 80 + 40 + 20 + + bg=red +transparency=0 + + + + Text + + 40 + 40 + 60 + 40 + + スペース +キー + + + + Relation + + 290 + 80 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + Text + + 300 + 40 + 110 + 40 + + SHA512Half +ハッシュ関数 + + + + UMLClass + + 420 + 80 + 160 + 20 + + bg=red +transparency=0 + + + + Text + + 420 + 40 + 160 + 30 + + レジャーオブジェクトID + + + + UMLClass + + 40 + 110 + 40 + 20 + + bg=red +transparency=0 + + + + UMLClass + + 110 + 110 + 160 + 20 + + + + + + Relation + + 290 + 110 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 110 + 160 + 20 + + bg=red +transparency=0 + + + + UMLClass + + 40 + 140 + 40 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 110 + 140 + 60 + 20 + + + + + + Relation + + 290 + 140 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 140 + 160 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 180 + 140 + 60 + 20 + + + + + + UMLClass + + 40 + 170 + 40 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 110 + 170 + 80 + 20 + + + + + + UMLClass + + 200 + 170 + 60 + 20 + + + + + + Relation + + 290 + 170 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 170 + 160 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 40 + 200 + 40 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 110 + 200 + 30 + 20 + + + + + + UMLClass + + 150 + 200 + 60 + 20 + + + + + + Relation + + 290 + 200 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 200 + 160 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 220 + 200 + 60 + 20 + + + + + + UMLClass + + 40 + 230 + 40 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 110 + 230 + 30 + 20 + + + + + + UMLClass + + 150 + 230 + 60 + 20 + + + + + + UMLClass + + 220 + 230 + 60 + 20 + + + + + + Relation + + 290 + 230 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 230 + 160 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 40 + 260 + 40 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 110 + 260 + 30 + 20 + + + + + + UMLClass + + 150 + 260 + 60 + 20 + + + + + + UMLClass + + 220 + 260 + 60 + 20 + + + + + + Relation + + 290 + 260 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 260 + 160 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 40 + 330 + 40 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 110 + 330 + 160 + 20 + + + + + + Relation + + 290 + 330 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 330 + 110 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 530 + 330 + 50 + 20 + + fx rate +valign=center + + + + UMLClass + + 40 + 360 + 40 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 110 + 360 + 160 + 20 + + + + + + Relation + + 290 + 360 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 360 + 110 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 530 + 360 + 50 + 20 + + fx rate +valign=center + + + + Text + + 170 + 300 + 320 + 30 + + オファーディレクトリ用の特殊ID + + + diff --git a/content/_img-sources/ledger-object-ids.uxf b/content/_img-sources/ledger-object-ids.uxf new file mode 100644 index 0000000000..958578ceb1 --- /dev/null +++ b/content/_img-sources/ledger-object-ids.uxf @@ -0,0 +1,587 @@ + + + 10 + + UMLClass + + 110 + 80 + 160 + 20 + + + + + + Text + + 110 + 40 + 100 + 30 + + Key inputs + + + + UMLClass + + 40 + 80 + 40 + 20 + + bg=red +transparency=0 + + + + Text + + 40 + 40 + 60 + 40 + + Space +key + + + + Relation + + 290 + 80 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + Text + + 300 + 40 + 110 + 40 + + SHA512Half +hash function + + + + UMLClass + + 420 + 80 + 160 + 20 + + bg=red +transparency=0 + + + + Text + + 420 + 40 + 160 + 30 + + Unique Object ID + + + + UMLClass + + 40 + 110 + 40 + 20 + + bg=red +transparency=0 + + + + UMLClass + + 110 + 110 + 160 + 20 + + + + + + Relation + + 290 + 110 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 110 + 160 + 20 + + bg=red +transparency=0 + + + + UMLClass + + 40 + 140 + 40 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 110 + 140 + 60 + 20 + + + + + + Relation + + 290 + 140 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 140 + 160 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 180 + 140 + 60 + 20 + + + + + + UMLClass + + 40 + 170 + 40 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 110 + 170 + 80 + 20 + + + + + + UMLClass + + 200 + 170 + 60 + 20 + + + + + + Relation + + 290 + 170 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 170 + 160 + 20 + + bg=blue +transparency=0 + + + + UMLClass + + 40 + 200 + 40 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 110 + 200 + 30 + 20 + + + + + + UMLClass + + 150 + 200 + 60 + 20 + + + + + + Relation + + 290 + 200 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 200 + 160 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 220 + 200 + 60 + 20 + + + + + + UMLClass + + 40 + 230 + 40 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 110 + 230 + 30 + 20 + + + + + + UMLClass + + 150 + 230 + 60 + 20 + + + + + + UMLClass + + 220 + 230 + 60 + 20 + + + + + + Relation + + 290 + 230 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 230 + 160 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 40 + 260 + 40 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 110 + 260 + 30 + 20 + + + + + + UMLClass + + 150 + 260 + 60 + 20 + + + + + + UMLClass + + 220 + 260 + 60 + 20 + + + + + + Relation + + 290 + 260 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 260 + 160 + 20 + + bg=yellow +transparency=0 + + + + UMLClass + + 40 + 330 + 40 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 110 + 330 + 160 + 20 + + + + + + Relation + + 290 + 330 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 330 + 110 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 530 + 330 + 50 + 20 + + fx rate +valign=center + + + + UMLClass + + 40 + 360 + 40 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 110 + 360 + 160 + 20 + + + + + + Relation + + 290 + 360 + 130 + 30 + + lt=<<<- + 110.0;10.0;10.0;10.0 + + + UMLClass + + 420 + 360 + 110 + 20 + + bg=green +transparency=0 + + + + UMLClass + + 530 + 360 + 50 + 20 + + fx rate +valign=center + + + + Text + + 170 + 300 + 320 + 30 + + Special Indexes for Offer Directories + + + diff --git a/content/references/rippled-api/ledger-data-formats/ledger-object-ids.ja.md b/content/references/rippled-api/ledger-data-formats/ledger-object-ids.ja.md index f42d16669f..f9affe057b 100644 --- a/content/references/rippled-api/ledger-data-formats/ledger-object-ids.ja.md +++ b/content/references/rippled-api/ledger-data-formats/ledger-object-ids.ja.md @@ -3,8 +3,7 @@ レジャーの状態ツリーのすべてのオブジェクトには一意のIDがあります。このフィールドは、オブジェクトの内容と同じレベルでJSONの`index`フィールドとして返されます。IDは、オブジェクトの重要な内容をハッシュし、[名前空間ID](https://github.com/ripple/rippled/blob/master/src/ripple/protocol/LedgerFormats.h#L99)を使用して生成されます。[レジャーオブジェクトタイプ](ledger-object-types.html)により、使用する名前空間IDとハッシュに含める内容が決定します。これにより、すべてのIDが一意になります。ハッシュを計算するため、`rippled`はSHA-512を使用し、その結果を最初の256バイトで切り捨てます。**SHA-512ハーフ**と呼ばれるこのアルゴリズム出力は、SHA-256と同等のセキュリティで、64ビットプロセッサーでは実行にかかる時間が短くなります。 -![図: rippledによる、SHA-512ハーフを使用したレジャーオブジェクトIDの生成。スペースキーは、異なるオブジェクトタイプIDの競合を防止します。](img/ledger-indexes.ja.png) - +{{ include_svg("img/ledger-object-ids.ja.svg", "図: rippledによる、SHA-512ハーフを使用したレジャーオブジェクトIDの生成。スペースキーは、異なるオブジェクトタイプIDの競合を防止します。") }} ## 関連項目 @@ -15,4 +14,4 @@ {% include '_snippets/rippled-api-links.md' %} {% include '_snippets/tx-type-links.md' %} -{% include '_snippets/rippled_versions.md' %} \ No newline at end of file +{% include '_snippets/rippled_versions.md' %} diff --git a/content/references/rippled-api/ledger-data-formats/ledger-object-ids.md b/content/references/rippled-api/ledger-data-formats/ledger-object-ids.md index f50acb47c4..41692ec81e 100644 --- a/content/references/rippled-api/ledger-data-formats/ledger-object-ids.md +++ b/content/references/rippled-api/ledger-data-formats/ledger-object-ids.md @@ -7,7 +7,7 @@ Generally, a ledger object's ID is returned as the `index` field in JSON, at the **Tip:** The `index` or `LedgerIndex` field of an object in the ledger is the ledger object ID. This is not the same as a [ledger index][]. -![Diagram: rippled uses SHA-512Half to generate IDs for ledger objects. The space key prevents IDs for different object types from colliding.](img/ledger-indexes.png) +{{ include_svg("img/ledger-object-ids.svg", "Diagram: rippled uses SHA-512Half to generate IDs for ledger objects. The space key prevents IDs for different object types from colliding.") }} ## See Also diff --git a/img/ledger-object-ids.ja.svg b/img/ledger-object-ids.ja.svg new file mode 100644 index 0000000000..6162a89958 --- /dev/null +++ b/img/ledger-object-ids.ja.svg @@ -0,0 +1,312 @@ + + +オファーディレクトリ用の特殊IDfx ratefx rateレジャーオブジェクトIDSHA512Halfハッシュ関数スペースキーキー入力 diff --git a/img/ledger-object-ids.svg b/img/ledger-object-ids.svg new file mode 100644 index 0000000000..897df599c0 --- /dev/null +++ b/img/ledger-object-ids.svg @@ -0,0 +1,312 @@ + + +Special Indexes for Offer Directoriesfx ratefx rateUnique Object IDSHA512Halfhash functionSpacekeyKey inputs