I am launching a bitcoin wallet that uses browser-side Javascript to encrypt and decrypt bitcoin keys.
I want to make javascript available for verification on Github, and then download javascript from the github repository.
My problem is that I need to check the integrity of the loaded Javascript to make sure it has not been tampered with on Github.
How can i do this? It would be something like.
- Download Javascript using an ajax call.
- MD5 hash and comparison.
- If in good shape, do it.
source
share