# Would it take a big dev effort to make DAML on Fabric Private/Transient data compatible?

**URL:** <https://forum.canton.network/t/would-it-take-a-big-dev-effort-to-make-daml-on-fabric-private-transient-data-compatible/1138>\
**Category:** App Development\
**Created:** [September 1, 2020, 8:36am UTC](https://forum.canton.network/t/would-it-take-a-big-dev-effort-to-make-daml-on-fabric-private-transient-data-compatible/1138 "2020-09-01T08:36:15Z")\
**Posts on this page:** 5\
**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:** [September 1, 2020, 8:36am UTC](https://forum.canton.network/t/would-it-take-a-big-dev-effort-to-make-daml-on-fabric-private-transient-data-compatible/1138/1 "2020-09-01T08:36:15Z")

</div>

As far as I understand, [DAML on Fabric](https://github.com/digital-asset/daml-on-fabric) is not compatible with Fabric’s two privacy features, Private Data and Transient Data.

The difference between Private Data and Transient Data is explained eg. in this blog post:

> **Scenario 3** : Using Private Data with Transient Data input
> 
> Similar to Scenario 2, data is written into the private data part inside a ledger, and only those peers of organizations defined in collection definition will keep this data. In the chaincode, `PutPrivateData` and `GetPrivateData` API are used with collection specified. When we invoke chaincode, we specify the input as transient data, not as arguments. And we use `GetTransient` in the chaincode to process the input data.
> 
> This can be used when data privacy is needed in storage, while the input data is sensitive such that they should not be kept anywhere.

Source: [Private Data and Transient Data in Hyperledger Fabric](https://medium.com/@kctheservant/private-data-and-transient-data-in-hyperledger-fabric-46b5258f391e)

From the description, it seems to me that for using these two features we don’t need different chaincode logic, just need to use three special functions in the chaincode for processing the input arguments, and put and get the world state data.

All this makes me wonder if it would take a big development effort to make DAML on Fabric support these two privacy features.

---

<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:** [September 9, 2020, 6:19pm UTC](https://forum.canton.network/t/would-it-take-a-big-dev-effort-to-make-daml-on-fabric-private-transient-data-compatible/1138/2 "2020-09-09T18:19:33Z")

</div>

Hi @gyorgybalazsi, you’re correct that the current implementation doesn’t use these Fabric privacy features. In the current version of DAML for Fabric, the full DAML privacy spec is enforced at the API level and not the infrastructure level. You’re correct that it wouldn’t be too big a development effort to make DAML for Fabric support these.

We’re currently working on the next version of DAML for Fabric based on the [Canton protocol](https://www.canton.io/) which will provide full DAML privacy guarantees in addition to all of the Canton feature set.

---

<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:** [September 10, 2020, 10:06am UTC](https://forum.canton.network/t/would-it-take-a-big-dev-effort-to-make-daml-on-fabric-private-transient-data-compatible/1138/3 "2020-09-10T10:06:40Z")

</div>

That`s great news, thank you!

---

<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:** [September 11, 2020, 7:10pm UTC](https://forum.canton.network/t/would-it-take-a-big-dev-effort-to-make-daml-on-fabric-private-transient-data-compatible/1138/4 "2020-09-11T19:10:01Z")

</div>

HI @Shaul, when the next version of DAML for Fabric based on the Canton protocol, you have mentioned, is expected to become generally available?

---

<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:** [September 11, 2020, 8:43pm UTC](https://forum.canton.network/t/would-it-take-a-big-dev-effort-to-make-daml-on-fabric-private-transient-data-compatible/1138/5 "2020-09-11T20:43:19Z")

</div>

We haven’t announced a GA date yet. If you have specific clients/use cases which require Fabric we’d be glad to know as it may affect prioritization.

DM me on Slack if you want early access to the alpha version, I’m sure we can arrange that for you.

From a user perspective, it won’t feel much different than using Canton with the Postgres integration (the Canton domain will be centralized, but you can still distribute the participant nodes) so you may want to start with Postgres and it will be dead simple to swap in Fabric and transfer all contracts after the fact, even if you’re already in production.
