Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from electrum import bitcoin
import sys
if len( sys.argv ) > 2:
format,privkey,compressed=bitcoin.deserialize_privkey( sys.argv[1] )
print( bitcoin.serialize_privkey( privkey, compressed, sys.argv[2] ) )
print( "Please provide arguments: Usage electrum-convert-privkey <privkey> <target_type>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.