I run a Bitcoin wallet that uses browser side Javascript to encrypt and decrypt Bitcoin keys.
I want to make the javascript available for scrutiny on Github, and then load the javascript from the github repository.
My problem is I need to check the integrity of the loaded Javascript to ensure at hasn't been tampered with at Github.
How can I best do this ? Would it be something like.
- Load remote Javascript with an ajax call.
- MD5 hash and compare.
- If in good shape execute it.