Open SergioMD15 opened 4 years ago
diskUsage
in a new proof shows the total lifetime of that disk or instead the time that has passed since the last proof?
GenericProof
attribute?
block.timestamp
.The deviceUsage
feature won't be implemented in the end. Instead, what we will do is to create a new parent proof MetricProofs
with DataWipeProofs
and FunctionProofs
as children. This new proof will hold values related to metrics that can be used outside of the blockchain.
We need to compute the total time a device has been used. This value is dynamically computed taking advantage of the time of disk usage from their components.
This attribute
diskUsage
exists inFunctionProofs.sol
, but needs to be added as well inDataWipeProofs.sol
.