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.
Created a @staticmethod in the
PrivateKey
class called generate that creates a PrivateKey, which is a random hexadecimal string withnbytes
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