# ACS commitment

> Participant Nodeどうしが共有するコントラクトの状態を確かめ合うACS commitmentを、章の中の図解で追います。

- URL: https://cardene.dev/diagrams/canton-acs-reconciliation
- 公開日: 2026-11-20
- 更新日: 2026-11-20
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Canton Networkの全体像](https://cardene.dev/diagrams/canton-network.md): トランザクションの中身を関わるpartyにだけ見せるCanton Networkについて、部品ごとの役割と、1つのトランザクションが部品の間をどう流れるかを段ごとに追います。
- 子の図解: [ACS commitmentで状態の一致を示す](https://cardene.dev/diagrams/canton-acs-commitment-proof.md): Participant Nodeどうしが署名付きのACS commitmentを交わして共有の状態の合意を示し、不一致のforkを見つけてからpruneするまでを、2つの図と表で追います。
- 子の図解: [新しいACS commitmentの作り方](https://cardene.dev/diagrams/canton-acs-commitment-v36.md): protocol version 36の新しいACS commitmentが、3つの部品でdigestを作って相手と比べる順と、既定で動く部品と設定の効果を、2つの図で追います。
- 子の図解: [commitmentの遅れに対処する](https://cardene.dev/diagrams/canton-acs-commitment-delays.md): 相手のACS commitmentが遅れた時と自分の計算が遅れた時の見つけ方と、待たない相手の設定と、catch-up modeの設定を、図と表で追います。
- 子の図解: [ACSの食い違いを調べて直す](https://cardene.dev/diagrams/canton-acs-commitments.md): Participant Nodeどうしのcommitmentが食い違った時に、commitmentを引いて見つけ、原因のコントラクトまで辿り、再初期化するまでを、図と表で追います。
- 子の図解: [ACSの食い違いとpruningの失敗](https://cardene.dev/diagrams/canton-error-acs-pruning.md): ACS commitmentが食い違う時の警告と、pruningができない時のエラーを、起きた事ごとに2つの図で確かめ、直し方を表で追います。

前の章「複数のSynchronizer」では、コントラクトの割り当てと、Synchronizerの間の移し方を見ました。
この章では、Participant Nodeどうしが、共有するコントラクトの状態に合意しているかを確かめる所を、ACS commitmentで追います。
ACS commitmentは、Participant Nodeが署名した、共有するactiveなコントラクトの暗号のまとめです。

まず、commitmentで共有の状態の合意を示し、不一致のforkを見つけてから古い履歴をpruneするまでを見ます。
commitmentを交わす相手と頻度、作り方、forkが見つかった時、計算と帯域の最適化、commitmentが捉えない所を追います。

https://cardene.dev/diagrams/canton-acs-commitment-proof

次に、protocol version 36で作り直された新しいACS commitmentが、3つの部品でdigestを作って相手のcommitmentと比べる順を見ます。
既定で動く部品と設定を変えた時の動き、pruningと調べる道具の扱い、metricの対応、データベースの問い合わせの遅さの直しを追います。

https://cardene.dev/diagrams/canton-acs-commitment-v36

さらに、相手のcommitmentが遅れた時や自分の計算が遅れた時に、遅れを見つける道具と、遅い相手を監視する設定を見ます。
相手を待たない設定でpruningがどう変わるかと、自分の遅れに追いつくcatch-up modeの設定も追います。

https://cardene.dev/diagrams/canton-acs-commitment-delays

そして、commitmentが食い違った時に、警告から、commitmentを引いて食い違う期間を見つけ、原因のコントラクトまで辿る手順を見ます。
commitmentを再初期化するコマンドも表で追います。

https://cardene.dev/diagrams/canton-acs-commitments

最後に、ACS commitmentが食い違う時や遅れる時の警告と、pruningができない時のエラーを、起きた事ごとの図で確かめます。
返るエラーのcategoryと記録のlevelと、直し方を、表と図で追います。

https://cardene.dev/diagrams/canton-error-acs-pruning

図の語は、それぞれの頁が説明します。

下の図は、この章の5つの頁が扱う物を、運用者から自分のParticipant NodeとSequencerと相手のParticipant Nodeの順に置きます。
虫眼鏡の印が付いた部品を押すと、その部品の中へ入ります。
外側へ戻る時は、右上の「戻る」か、上に並んだ名前を押します。
部品の中へ入ると、名前の並びの下にその部品を説明する頁の題が出て、押すとその頁を開きます。

```dragon
architecture 運用者から相手のParticipant Nodeへ
group Top as commitmentで状態を確かめ合う所 [icon: net]
  box Op as 運用者 [note: 食い違いや遅れに対処する, color: blue, icon: user, link: /diagrams/canton-acs-commitments]
  box Own as 自分のParticipant Node [note: commitmentを計算して送る, color: green, icon: server, link: /diagrams/canton-acs-commitment-proof]
  box Seq as Sequencer [note: commitmentを届ける, color: violet, icon: clock, link: /diagrams/canton-acs-commitment-proof]
  box Peer as 相手のParticipant Node [note: commitmentを受けて比べる, color: amber, icon: server, link: /diagrams/canton-acs-commitment-proof]
end
group OpIn as 運用者の中 [color: blue, icon: user]
  box Delay as 遅れへの対処 [note: 待たない設定とcatch-up modeの設定, icon: clock, link: /diagrams/canton-acs-commitment-delays]
  box Cmd as 調べて直すコマンド [note: commitmentを引き、原因のコントラクトまで辿り、再初期化する, icon: refresh, link: /diagrams/canton-acs-commitments]
end
group DelayIn as 遅れへの対処の中 [color: blue, icon: clock]
  box NoWait as 待たない設定 [note: 遅い相手のcommitmentを待たない, icon: net, link: /diagrams/canton-acs-commitment-delays]
  box CU as catch-up modeの設定 [note: Synchronizerの運用者が周期を飛ばす設定を決める, icon: refresh, link: /diagrams/canton-acs-commitment-delays]
end
group OwnIn as 自分のParticipant Nodeの中 [color: green, icon: server]
  box Parts as 3つの部品 [note: digestに集め、署名して送り、比べる, icon: db, link: /diagrams/canton-acs-commitment-v36]
  box Err as 警告とエラー [note: 食い違い、遅れ、pruningの失敗で出る, icon: check, link: /diagrams/canton-error-acs-pruning]
end
group PartsIn as 3つの部品の中 [color: green, icon: db]
  box DP as digest processor [note: digestに集める, icon: db, link: /diagrams/canton-acs-commitment-v36]
  box SD as sender [note: 署名して送る, icon: server, link: /diagrams/canton-acs-commitment-v36]
  box MT as matcher [note: digestと比べる, icon: check, link: /diagrams/canton-acs-commitment-v36]
end

step 運用者から相手のParticipant Nodeへ
  say 自分のParticipant Nodeは、commitmentを計算して、Sequencerを通して相手のParticipant Nodeへ送ります。運用者は、commitmentの食い違いや遅れに対処します。
  Own -> Seq: commitmentを送る
  Seq -> Peer: 届ける
  source CantonのPruning [url: https://docs.canton.network/overview/reference/pruning]
  source CantonのTransaction Failures [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/transaction-failures]

step 運用者の中
  say 運用者は、commitmentを引くコマンドで食い違う期間を確かめ、原因のコントラクトまで辿ります。commitmentが破損した時は、再初期化できます。遅れには、待たない設定とcatch-up modeの設定で対処します。
  source CantonのConsole Commands [url: https://docs.canton.network/global-synchronizer/reference/canton-console-commands]
  source CantonのTransaction Failures [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/transaction-failures]

step 遅れへの対処の中
  say 待たない設定にした相手のcommitmentが欠けても、pruningは続きます。自分の計算が遅れた時は、catch-up modeが周期を飛ばして追いつきます。catch-up modeの設定は、Synchronizerの運用者がSynchronizerごとに決めます。
  source CantonのConsole Commands [url: https://docs.canton.network/global-synchronizer/reference/canton-console-commands]
  source CantonのTransaction Failures [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/transaction-failures]

step 自分のParticipant Nodeの中
  say 新しいACS commitmentは3つの部品からなります。自分のParticipant Nodeは、食い違いや遅れの警告と、pruningができない時のエラーを出します。
  source Canton 3.6.1のリリースノート [url: https://docs.canton.network/global-synchronizer/release-notes/canton-releases/3-6-1]
  source CantonのTransaction Failures [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/transaction-failures]
  source CantonのError Code Reference [url: https://docs.canton.network/global-synchronizer/reference/error-codes]

step 3つの部品の中
  say digest processorがACSとその変化をdigestに集め、senderがdigestに署名してcommitmentにして送り、matcherが受けたcommitmentを自分のdigestと比べます。
  DP -> SD: digestを渡す
  source Canton 3.6.1のリリースノート [url: https://docs.canton.network/global-synchronizer/release-notes/canton-releases/3-6-1]
```

一番外の階では、自分のParticipant Nodeがcommitmentを計算してSequencerを通して相手のParticipant Nodeへ送り、運用者は、commitmentの食い違いや遅れに対処します。

運用者の中では、commitmentを引くコマンドで食い違う期間を確かめ、原因のコントラクトまで辿ります。
commitmentが破損した時は、再初期化できます。
遅れには、待たない設定とcatch-up modeの設定で対処します。

遅れへの対処の中では、待たない設定にした相手のcommitmentが欠けても、pruningは続きます。
自分の計算が遅れた時は、catch-up modeが周期を飛ばして追いつきます。
catch-up modeの設定は、Synchronizerの運用者がSynchronizerごとに決めます。

自分のParticipant Nodeの中では、新しいACS commitmentは3つの部品からなります。
自分のParticipant Nodeは、食い違いや遅れの警告と、pruningができない時のエラーを出します。

3つの部品の中では、digest processorがACSとその変化をdigestに集め、senderがdigestに署名してcommitmentにして送り、matcherが受けたcommitmentを自分のdigestと比べます。

この図では、自分のParticipant NodeからSequencerを通して相手のParticipant Nodeへの線を、commitmentを送る向きだけで引き、相手から自分へ送る向きは引きません。
この図では、3つの部品の中のdigest processorからsenderへの線を、digestを渡す流れとして引きます。

この図では、運用者を、食い違いや遅れに対処する部品として置き、運用者の中も、遅れへの対処の中も、線は引きません。

## 出典

https://docs.canton.network/overview/reference/pruning

https://docs.canton.network/global-synchronizer/troubleshooting-guide/transaction-failures

https://docs.canton.network/global-synchronizer/reference/canton-console-commands

https://docs.canton.network/global-synchronizer/reference/error-codes

https://docs.canton.network/global-synchronizer/release-notes/canton-releases/3-6-1
