btcpy icon indicating copy to clipboard operation
btcpy copied to clipboard

PrivateKey generation from entropy

Open csyhuang opened this issue 3 years ago • 1 comments

Created a @staticmethod in the PrivateKey class called generate that creates a PrivateKey, which is a random hexadecimal string with nbytes bytes, using python's secrets standard module. A corresponding unit test is added.

Please let me know if the pull request meets the requirement, or there are any suggested changes.

Thank you!

#31

csyhuang avatar Oct 05 '20 18:10 csyhuang

Hi @SimoneBronzini I have made the change you mentioned and pushed the commit. May you have a look and let me know if that's OK? Thanks!

csyhuang avatar Oct 12 '20 15:10 csyhuang