DSG-UPC / eReuse-Blockchain

GNU General Public License v3.0
1 stars 1 forks source link

Computation of device usage time #14

Open SergioMD15 opened 4 years ago

SergioMD15 commented 4 years ago

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 in FunctionProofs.sol, but needs to be added as well in DataWipeProofs.sol.

SergioMD15 commented 4 years ago

Doubts:

Changelog

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 FunctionProofsas children. This new proof will hold values related to metrics that can be used outside of the blockchain.