# The transaction handling consequences of the deprecation of divulgence

**URL:** <https://forum.canton.network/t/the-transaction-handling-consequences-of-the-deprecation-of-divulgence/4521>\
**Category:** App Development\
**Tags:** features and bugs\
**Created:** [May 13, 2022, 9:26am UTC](https://forum.canton.network/t/the-transaction-handling-consequences-of-the-deprecation-of-divulgence/4521 "2022-05-13T09:26:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [May 13, 2022, 9:26am UTC](https://forum.canton.network/t/the-transaction-handling-consequences-of-the-deprecation-of-divulgence/4521/1 "2022-05-13T09:26:03Z")

</div>

There was already some discussion about the consequences of the deprecation of divulgence: [Deprecation of using Divulged Contracts](https://discuss.daml.com/t/deprecation-of-using-divulged-contracts/2974)

I bring up this topic again because I want to make sure that I fully understand its transaction handling consequences.

According to the docs, divulgence seems to be the privacy consequence of a deep transaction handling principle:

> Daml’s privacy model is based on two principles:
> 
> Principle 1. Parties see those actions that they have a stake in. Principle 2. Every party that sees an action sees its (transitive) consequences.
> 
> Principle 2 is necessary to ensure that every party can independently verify the validity of every transaction they see.

See the **Privacy** section of the page [Composing Choices — Daml SDK 2.7.6 documentation](https://docs.daml.com/daml/intro/7_Composing.html#privacy).

Later on the same page it says:

> Divulgence
> 
> Note that Principle 2 of the privacy model means that sometimes parties see contracts that they are not signatories or observers on. If you look at the final ledger state of the test\_trade script, for example, you may notice that both Alice and Bob now see both assets, as indicated by the Xs in their respective columns:
> 
> The table as described above.  
> This is because the create action of these contracts are in the transitive consequences of the Trade\_Settle action both of them have a stake in. This kind of disclosure is often called “divulgence” and needs to be considered when designing Daml models for privacy sensitive applications.

See the **Divulgence** section of the page [Composing Choices — Daml SDK 2.7.6 documentation](https://docs.daml.com/daml/intro/7_Composing.html#divulgence)

I guess the deprecation of divulgence doesn’t mess up the ledger execution model, but It’s not immediately obvious to me how this is possible.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [May 13, 2022, 10:09am UTC](https://forum.canton.network/t/the-transaction-handling-consequences-of-the-deprecation-of-divulgence/4521/2 "2022-05-13T10:09:50Z")

</div>

The crucial part here is that the _use of_ divulged contracts is deprecated not divulgence. The privacy rules for transactions are completely unchanged.

The problematic part was that divulgence had a side effect:  
Because you’ve been divulged a contract in one transaction you were able to fetch it in later transactions. However, you might not see the archive of such a contract as you’re not a stakeholder meaning that it can never be pruned.

This is the part that is deprecated: You’ll still get to see the contract as part of the transaction but the side effect that you can therefore fetch it in later transactions is deprecated.

---

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [May 13, 2022, 12:47pm UTC](https://forum.canton.network/t/the-transaction-handling-consequences-of-the-deprecation-of-divulgence/4521/3 "2022-05-13T12:47:00Z")

</div>

Thanks, I understand it now!
