Template Access Control

Hi
The relevant participant nodes need to have the dar file so that they can validated transactions using the shared business rules. However is it possible to secure these dar files so that the code can not be reverse engineered?

Thanks

No - it’s a core principle of Daml that if you are signing the execution of a choice, you need to be able to see its code.

There could be ways to limit the visibility of DAR files, such that only selected participants can see a given DAR, but there is no plan to have a way for DAR files themselves to be encrypted.

If you have a use-case where some of the logic needs to be private, that logic needs to be implemented off-ledger, such as in a trigger or a custom application using the gRPC API.

2 Likes