Open weiihann opened 1 month ago
Here's a general explanation of how expiry works with stateless proofs:
There are 4 scenarios for a given stem:
Both prestate and poststate not expired
Both prestate and poststate expired
Prestate not expired, poststate expired
Prestate expired, poststate not expired
extStatusExpired
to indicate if a given stem has expired.extStatusExpired
and any of the postvalue in the stem given in the proof is not absent, then we know that there's a resurrection.
Primary changes:
StateEpoch
typeGet
,Insert
andDelete
to includeStateEpoch
. If trying to access expired leaf node, returns error.lastEpoch
field inLeafNode
, included in serialization and node commitment calculationExpiryLeafNode
struct