# What shared state do ACS commitments cover?

**URL:** <https://forum.canton.network/t/what-shared-state-do-acs-commitments-cover/5012>\
**Category:** App Development\
**Tags:** canton\
**Created:** [August 2, 2022, 2:16pm UTC](https://forum.canton.network/t/what-shared-state-do-acs-commitments-cover/5012 "2022-08-02T14:16:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaul](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/shaul/32/117_2.png) [@Shaul](https://forum.canton.network/u/Shaul)\
**Post date:** [August 2, 2022, 2:16pm UTC](https://forum.canton.network/t/what-shared-state-do-acs-commitments-cover/5012/1 "2022-08-02T14:16:02Z")

</div>

Do ACS commitments between two Canton participant nodes commit to?

1. The full shared state between two nodes, including all observed (but not witnessed or divulged) contract, or
2. Only the shared-signatory state, or
3. Something else?

---

<div class="post-metadata">

**Author:** ![Ratko\_Veprek](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ratko_veprek/32/206_2.png) [@Ratko\_Veprek](https://forum.canton.network/u/Ratko_Veprek)\
**Post date:** [August 2, 2022, 3:27pm UTC](https://forum.canton.network/t/what-shared-state-do-acs-commitments-cover/5012/2 "2022-08-02T15:27:35Z")

</div>

The commitments are computed for the stakeholder-group of each contract:

> <https://github.com/digital-asset/canton/blob/9e5ec309ad5fe229e53ab668b6b180db67b555bc/community/participant/src/main/scala/com/digitalasset/canton/participant/pruning/AcsCommitmentProcessor.scala#L850>

A stakeholder is the union of signatories and observers:  
[https://docs.daml.com/daml/stdlib/Prelude.html#function-da-internal-template-functions-stakeholder-47883](https://docs.daml.com/daml/stdlib/Prelude.html#function-da-internal-template-functions-stakeholder-47883)

As the party to participant mappings can change over time, the participant P1 will compute then in regular intervals the stakeholder groups that it shares with P2 (so where they each host at least one party) and include the hash of that group in the commitment.

So the answer is #1.

I hope that helps!
