Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/python3
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] ) )
else:
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.