Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/packageID when Extending daml contractForum ↗

packageID when Extending daml contract

App Development2 posts155 viewsLast activity Aug 2022
KA
kayvankOP
Aug 2022

How are packageIDs generated? Are there any order to them?

From the Daml Documentation:
“Changes to the Daml model will result in changed packageIDs for the contained templates.”

My main question is :
are the packageIDs when extending acontract monotonic?
In other words, is it always true that old-packageID < new-packageID
or conversely
always true that old-packageID >new-packageID

CO
cocreature
Aug 2022

Package ids are a hash (a sha256) of the content. So as usual for hashes you don’t get any guarantees how the old & new packag id are ordered.

← Back to Discussions