Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next button disappear #5867

Closed
DroomieChikito opened this issue Dec 28, 2019 · 2 comments
Closed

next button disappear #5867

DroomieChikito opened this issue Dec 28, 2019 · 2 comments

Comments

@DroomieChikito
Copy link

I try to impor privat key
example:
p2wpkh-p2sh:5K817kyuyGNYbRK1fYznPN1d1bE22725JMSv13s7TnbXiUo5wNw

Next button disappear, I can't open my address.

@AbdussamadA
Copy link
Contributor

Segwit addresses can only be created from compressed private keys that begin with L or K. That's an uncompressed private key beginning with 5. If you're importing from armory then you first need to convert that private key into it's compressed form. You can do that in electrum via the console tab (view > show console if you can't see it):

  • switch to the console tab and press enter a few times until you see the prompt (>>)

  • enter this code there (replacing the privkey with your actual key):

    privkey="5K817kyuyGNYbRK1fYznPN1d1bE22725JMSv13s7TnbXiUo5wNw"
    orig_format,secret,compressed=bitcoin.deserialize_privkey( privkey )
    bitcoin.serialize_privkey( secret, True, "p2wpkh-p2sh" )

Note quotes matter here.

@DroomieChikito
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants