Slice command - Delete or overwrite a slice? #18
-
Dear @MartinSchmidt , I have a question regarding the Slice command. 1/ Energy Track & Trace: implementation of CertificateQuantityYou might remember that last year, in the framework of Energy Track & Trace, we discussed about the implementation of a "partial ownership and transfer" process for granular certificates. I refer to following issue: https://github.com/Energy-Track-and-Trace/ett-documentation/issues/37 At that moment, you made following comment:
2/ Project Origin: SlicesIn the meantime, with Project Origin, the concept of Slices is introduced, which basically supersedes the Certificate Quantity concept. However, while reading the documentation, I noticed that the Slice command does the following:
Different approachesIf I'm not mistaken, these are two different approaches for slicing: overwriting the existing slices versus deleting the originating slice. Could you elaborate on this? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi Michael. I am also a bit add odds with the underlying function of the additional end state of the certificate - the removed part as described in the slice lifecycle documentation, after reading through the example code there is also a remainder which means no part of the slice is "removed". This brings to question is this an endstate that will ever be used ? I think it is in place for interregistry transfers, so that a registry operator can ensure that their own registry is healthy by auditing their own transactions - interregistry depency would be a nightmare to handle IMHO - so I believe this is why the "removed" state is in place. I will dig further into the code and will report any findings in this thread. |
Beta Was this translation helpful? Give feedback.
-
Hi @MartinSchmidt , could you have a look at this? |
Beta Was this translation helpful? Give feedback.
-
We discussed this matter during the offsite at Fredericia (20-21/Apr) between Energinet and Elia Group teams. @MartinSchmidt & @wisbech were present. Answer: |
Beta Was this translation helpful? Give feedback.
We discussed this matter during the offsite at Fredericia (20-21/Apr) between Energinet and Elia Group teams. @MartinSchmidt & @wisbech were present.
Answer:
Slicing up slices by removing of the original Slice & creation of new slices is the most straightforward and robust way in terms of management within the ProjectOrigin registry (events in the event store and pushing into the blockchain using merkle trees).
We'll follow this logic in Energy Track & Trace.