From 358314c8c1ecb74a76272477d52ec06fa64d1093 Mon Sep 17 00:00:00 2001 From: tequ Date: Tue, 10 Sep 2024 13:09:52 +0900 Subject: [PATCH 1/3] Update Network ID list --- .../protocol/transactions/common-fields.md | 21 +++++++++++-------- .../protocol/transactions/common-fields.md | 21 +++++++++++-------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/@i18n/ja/docs/references/protocol/transactions/common-fields.md b/@i18n/ja/docs/references/protocol/transactions/common-fields.md index c47a3d94a0..bd2364fefb 100644 --- a/@i18n/ja/docs/references/protocol/transactions/common-fields.md +++ b/@i18n/ja/docs/references/protocol/transactions/common-fields.md @@ -131,15 +131,18 @@ MemoTypeフィールドとMemoFormatフィールドには、以下の文字の `NetworkID`フィールドは「クロスチェーン」トランザクションのリプレイ攻撃に対する保護であり、同じトランザクションがコピーされ、意図していない[ネットワーク](../../../concepts/networks-and-servers/parallel-networks.md)で実行されることを防ぎます。既存のチェーンとの互換性のため、ネットワークIDが1024以下のネットワークでは`NetworkID`フィールドを省略する必要がありますが、ネットワークIDが1025以上のネットワークでは`NetworkID`フィールドを含める必要があります。以下の表は、さまざまな既知のネットワークのステータスと値を示しています。 -| ネットワーク | ID | `NetworkID`フィールド | -|---------------|----|---------------------| -| Mainnet | 0 | 使用不可 | -| Testnet | 1 | 使用不可 | -| Devnet | 2 | 使用不可 | -| AMM Devnet | 25 | 使用不可 | -| Sidechains Devnet Locking Chain | 2551 | 使用不可, ただし、アップデート後に必要となる予定です。 | -| Sidechains Devnet Issuing Chain | 2552 | 使用不可, ただし、アップデート後に必要となる予定です。 | -| Hooks V3 Testnet | 21338 | 必須 | +| ネットワーク | ID | `NetworkID`フィールド | +| ------------------------------- | ----- | ----------------------------------------------------- | +| Mainnet | 0 | 使用不可 | +| Testnet | 1 | 使用不可 | +| Devnet | 2 | 使用不可 | +| AMM Devnet | 25 | 使用不可 | +| Sidechains Devnet Locking Chain | 2551 | 使用不可, ただし、アップデート後に必要となる予定です。 | +| Sidechains Devnet Issuing Chain | 2552 | 使用不可, ただし、アップデート後に必要となる予定です。 | +| Batch Testnet | 21336 | 必須 | +| Xahau Mainnet | 21337 | 必須 | +| Xahau Testnet | 21338 | 必須 | +| JS Hooks Testnet | 31338 | 必須 | トランザクションのリプレイ攻撃は理論的には可能ですが、2つ目のネットワークに特定の条件が必要です。次のすべてが真でなければなりません。 diff --git a/docs/references/protocol/transactions/common-fields.md b/docs/references/protocol/transactions/common-fields.md index 6bb47c8d01..04a523dd91 100644 --- a/docs/references/protocol/transactions/common-fields.md +++ b/docs/references/protocol/transactions/common-fields.md @@ -134,15 +134,18 @@ Example of a transaction with a Memos field: The `NetworkID` field is a protection against "cross-chain" transaction replay attacks, preventing the same transaction from being copied over and executing on a [parallel network](../../../concepts/networks-and-servers/parallel-networks.md) that it wasn't intended for. For compatibility with existing chains, the `NetworkID` field must be omitted on any network with a Network ID of 1024 or less, but must be included on any network with a Network ID of 1025 or greater. The following table shows the status and values for various known networks: -| Network | ID | `NetworkID` Field | -|---------------|----|-------------------| -| Mainnet | 0 | Disallowed | -| Testnet | 1 | Disallowed | -| Devnet | 2 | Disallowed | -| AMM Devnet | 25 | Disallowed | -| Sidechains Devnet Locking Chain | 2551 | Disallowed, but will become required after an update | -| Sidechains Devnet Issuing Chain | 2552 | Disallowed, but will become required after an update | -| Hooks V3 Testnet | 21338 | Required | +| Network | ID | `NetworkID` Field | +| ------------------------------- | ----- | ---------------------------------------------------- | +| Mainnet | 0 | Disallowed | +| Testnet | 1 | Disallowed | +| Devnet | 2 | Disallowed | +| AMM Devnet | 25 | Disallowed | +| Sidechains Devnet Locking Chain | 2551 | Disallowed, but will become required after an update | +| Sidechains Devnet Issuing Chain | 2552 | Disallowed, but will become required after an update | +| Batch Testnet | 21336 | Required | +| Xahau Mainnet | 21337 | Required | +| Xahau Testnet | 21338 | Required | +| JS Hooks Testnet | 31338 | Required | Transaction replay attacks are theoretically possible, but require specific conditions on the second network. All of the following must be true: From a702feb0923ed385869424dfa78252f0db927b2e Mon Sep 17 00:00:00 2001 From: Rome Reginelli Date: Tue, 10 Sep 2024 09:58:01 -0700 Subject: [PATCH 2/3] [ja] remove networkIDs of shuttered networks --- .../ja/docs/references/protocol/transactions/common-fields.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/@i18n/ja/docs/references/protocol/transactions/common-fields.md b/@i18n/ja/docs/references/protocol/transactions/common-fields.md index bd2364fefb..45bc47800d 100644 --- a/@i18n/ja/docs/references/protocol/transactions/common-fields.md +++ b/@i18n/ja/docs/references/protocol/transactions/common-fields.md @@ -136,9 +136,6 @@ MemoTypeフィールドとMemoFormatフィールドには、以下の文字の | Mainnet | 0 | 使用不可 | | Testnet | 1 | 使用不可 | | Devnet | 2 | 使用不可 | -| AMM Devnet | 25 | 使用不可 | -| Sidechains Devnet Locking Chain | 2551 | 使用不可, ただし、アップデート後に必要となる予定です。 | -| Sidechains Devnet Issuing Chain | 2552 | 使用不可, ただし、アップデート後に必要となる予定です。 | | Batch Testnet | 21336 | 必須 | | Xahau Mainnet | 21337 | 必須 | | Xahau Testnet | 21338 | 必須 | From a8a28b3631351a35d15acdc104e22b48dad6bc5c Mon Sep 17 00:00:00 2001 From: Rome Reginelli Date: Tue, 10 Sep 2024 09:58:43 -0700 Subject: [PATCH 3/3] Remove network IDs of shut-down AMM and Sidechains devnets --- docs/references/protocol/transactions/common-fields.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/references/protocol/transactions/common-fields.md b/docs/references/protocol/transactions/common-fields.md index 04a523dd91..281bb0384e 100644 --- a/docs/references/protocol/transactions/common-fields.md +++ b/docs/references/protocol/transactions/common-fields.md @@ -139,9 +139,6 @@ The `NetworkID` field is a protection against "cross-chain" transaction replay a | Mainnet | 0 | Disallowed | | Testnet | 1 | Disallowed | | Devnet | 2 | Disallowed | -| AMM Devnet | 25 | Disallowed | -| Sidechains Devnet Locking Chain | 2551 | Disallowed, but will become required after an update | -| Sidechains Devnet Issuing Chain | 2552 | Disallowed, but will become required after an update | | Batch Testnet | 21336 | Required | | Xahau Mainnet | 21337 | Required | | Xahau Testnet | 21338 | Required |