Closed nottoseethesun closed 6 years ago
This pull request ended up with conflicts and some changes from the original PR.
I've added the feature in https://github.com/iancoleman/bip39/commit/0b6e351dce55d6f139facf59aca50b9fca62c289 and is included in the current release 0.3.7
Some differences:
Thanks for the suggestion, I think this is a great feature.
Thank you, and I'm looking forward to the new feature!
Summary
This adds a simple checkbox form element, to enable the user to visually hide the private info on the page.
Motivation
Consider a scenario where a more technical person is helping someone verify their 24 word recovery phrase for their hardware wallet. The technical person would typically need to help verify the generated hash addresses, to make sure that the 24 words were correct.
In this scenario, ideally, the owner of the hardware wallet should be able to hide the recovery phrase and qr code from view. That way, the assistant can look at the bip39 page to verify the non-private hash addresses without seeing the hardware wallet owner's private info.
Tests
At this point, both iancoleman/bip39 master branch and my fork produce these results on my box, which all seem to be due to the test tool's timeout being too short for my local set-up (I am running a laptop with only small graphics capability, so perhaps that is affecting the tests):
I tried a larger
jasmine.DEFAULT_TIMEOUT_INTERVAL
and other intervals, but even at sixteen times the intervals that still left three failures for both the original and this fork:I've attached text files showing the complete logs for the test run on both the original and this fork. The only issues seem to be due to timeouts.
Here's what I did to try to eliminate the timeouts:
It seems that since both master and my fork produce the same test result, my change is orthogonal to any test issues. Those test issues would seem to be a separate topic.
test-logs-original-iancoleman.txt
test-logs-treelogic-swe-fork.txt