Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. python3
  2. Python 3.4.6 (default, Mar 22 2017, 12:26:13) [GCC] on linux
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>> from electrum import bitcoin
  5. [ecc] info: libsecp256k1 library not available, falling back to python-ecdsa. This means signing operations will be slower.
  6. >>> p2wpkh="L6Cyjtdfq1TimFfgG9qBEHQF2FmaL96H5ceTrip74S4eqFapbcDJ"
  7. >>> type,secret,compressed= bitcoin.deserialize_privkey( p2wpkh )
  8. >>> type
  9. 'p2wpkh'
  10. >>> compressed
  11. True
  12. >>> secret
  13. b"\x0c(\xfc\xa3\x86\xc7\xa2'`\x0b/\xe5\x0b|\xae\x11\xec\x86\xd3\xbf\x1f\xbeG\x1b\xe8\x98'\xe1\x9dr\xaa\x1d"
  14. >>> import binascii
  15. >>> binascii.hexlify(secret)
  16. b'0c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d72aa1d'
  17. >>> binascii.hexlify(secret).decode()
  18. '0c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d72aa1d'
  19. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement