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

Add checksum to stored measurements #438

Closed
pimlie opened this issue Sep 13, 2024 · 2 comments
Closed

Add checksum to stored measurements #438

pimlie opened this issue Sep 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@pimlie
Copy link
Contributor

pimlie commented Sep 13, 2024

What you want:

Whenever adding a measurement, calculate a checksum of the input values and store that together with the measurement.

Why you want it:

This might be considered to be a bit presumptuous, but f.e. in clinical trials validity of data is a strong requirement. Adding a checksum to database records for measurements would ensure that when reading the data we can check it's still the same as it was when writing the data.
In other words, there is always a tiny but non-zero chance a bit flip could occur ;)

We might not always have to check the checksum (fe to show statistics), just have the ability somewhere to verify the data.

@pimlie pimlie added the enhancement New feature or request label Sep 13, 2024
@derdilla
Copy link
Owner

I think this is already done for each page by sqlite: https://www.sqlite.org/cksumvfs.html

Regardless I think that computing this for every entry is still a bit over the top for 99% of users. Especially since the chance of pressing the wrong button during input is far higher.

If someone wanted to use my app as part of a larger clinical study that has these strict requirements I would prefer a more specialized fork of the app.

@derdilla
Copy link
Owner

Closing this as completed. Feel free to reopen if you think differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants