Guest User

Untitled

a guest
Nov 20th, 2017
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @classmethod
  2. def from_secret(cls, secret):
  3. if len(secret) == 64:
  4. return Address(binascii.unhexlify(secret))
  5. elif len(secret) == 32:
  6. return Address(secret)
  7. else:
  8. raise Exception("Secret has to be exactly 32 bytes")
  9.  
  10. a = Address.from_secret('36E3D037C4B73C3A650AA96F59F4B19DD50DEB5AC71463F74928BCC4DD785EF5')
  11. print a.pub, a.priv
Add Comment
Please, Sign In to add comment