Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report hashing #85

Closed
morganherlocker opened this issue Sep 17, 2019 · 1 comment
Closed

report hashing #85

morganherlocker opened this issue Sep 17, 2019 · 1 comment

Comments

@morganherlocker
Copy link
Contributor

When generating reports, we will create a hash signature used to verify the integrity of reports generated regardless of who is running them. Two report signatures will only match if the report was generated using the same input data, same config, and same aggregation source code. We will do this by calculating the SHA256 of the concatenation of the data log's SHA256, the SHA256 of the stringified config, and the SHA-1 or SHA-256 of the HEAD git commit of the source used when generating the report. Collisions will be theoretically possible with this scheme, but impractical given current compute constraints. Creating these hashes will make it easy for us to create versioned reports when something important changes in the data or aggregation methodology, and this will exposed in the report listing interface of the UI.

@morganherlocker
Copy link
Contributor Author

A sha-256 hash is now generated using a combination of the input data + the version of the mobility-metrics code that was used to generate the reports. I have added this signature to the bottom of each report, which can be used to compare reports generated by 2+ parties to verify methodology and data integrity.

Screenshot 2019-09-20 10 16 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant