spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.33k stars 3.05k forks source link

Sweeping P2WSH wif keys #5087

Open uFire opened 5 years ago

uFire commented 5 years ago

Hello

I am looking for a way to sweep a private key of the P2WSH bech32 address. I see that there three prefixes for script types listed:

p2pkh:KxZcY47uGp9a...         -> 1DckmggQM...
p2wpkh-p2sh:KxZcY47uGp9a...   -> 3NhNeZQXF...
p2wpkh:KxZcY47uGp9a...        -> bc1q3fjfk...

But whatever variation of the script type for the P2WSH bech32 address I typed, it always gives an error message box without any text inside.

Is P2WSH addresses like bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3 (long ones, witness scripthash) supported? If yes, then what is the correct WIF prefix should be to tell electrum use appropriate script type? I can't find anything on this in the documentation.

Electrum v3.3.3 for Windows

ecdsa commented 5 years ago

there is currently no way to import a key with a redeem script