Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- python3
- Python 3.4.6 (default, Mar 22 2017, 12:26:13) [GCC] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from electrum import bitcoin
- [ecc] info: libsecp256k1 library not available, falling back to python-ecdsa. This means signing operations will be slower.
- >>> p2wpkh="L6Cyjtdfq1TimFfgG9qBEHQF2FmaL96H5ceTrip74S4eqFapbcDJ"
- >>> type,secret,compressed= bitcoin.deserialize_privkey( p2wpkh )
- >>> type
- 'p2wpkh'
- >>> compressed
- True
- >>> secret
- 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"
- >>> import binascii
- >>> binascii.hexlify(secret)
- b'0c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d72aa1d'
- >>> binascii.hexlify(secret).decode()
- '0c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d72aa1d'
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement