Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Does the archive of a contract include a fetch of the full payload?Forum ↗

Does the archive of a contract include a fetch of the full payload?

App Development4 posts204 views1 likesLast activity Oct 2023
AS
asarpeshkarOP
Oct 2023

An archive is really the exercise of the implicit Archive choice present on every template, and a choice exercise requires fetching the contract, so at first glance the answer would be “yes”.

However, you only need to know the signatories to verify model conformance for archives, so in that case do we actually retain the full contract payload?

CO
cocreature
Oct 2023

Any exercise includes an implicit fetch of the contract during interpretation. Archive isn’t treated any differently here.

However, the transaction format does not store payloads of exercised contracts in general (at least for non-divulged contracts). So there shouldn’t be significant storage overhead from the payload if the contract hasn’t been divulged.

AS
asarpeshkar
Oct 2023
cocreature:

However, the transaction format does not store payloads of exercised contracts in general (at least for non-divulged contracts). So there shouldn’t be significant storage overhead from the payload if the contract hasn’t been divulged.

I take it this is because one can verify model conformance for exercises whose actors are stakeholders by simply fetching the contract from the participant store?

CO
cocreature
Oct 2023

Exactly

← Back to Discussions