Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @classmethod
- def from_secret(cls, secret):
- if len(secret) == 64:
- return Address(binascii.unhexlify(secret))
- elif len(secret) == 32:
- return Address(secret)
- else:
- raise Exception("Secret has to be exactly 32 bytes")
- a = Address.from_secret('36E3D037C4B73C3A650AA96F59F4B19DD50DEB5AC71463F74928BCC4DD785EF5')
- print a.pub, a.priv
Add Comment
Please, Sign In to add comment