Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: RedHeadedKoi on January 01, 2020, 10:17:24 PM



Title: Where to import minikey from Casascius
Post by: RedHeadedKoi on January 01, 2020, 10:17:24 PM
How do I go from minikey to importing it into my wallet. I can't find a wallet that supports minikey any longer. Does anyone know of a wallet that can do this?


Title: Re: Where to import minikey from Casascius
Post by: jackg on January 01, 2020, 10:36:37 PM
I think its supported by electrum but I'm not sure, it might be the best place to start though: electrum.org/#download

Armory looks like the only other  secure way to do it... You can also use blockchain.com but I wouldn't recommend it due to it being a webwallet.

Or you can follow the method here to decode it yourself if you can program or find the necessary tools and take your machine offline until the coins are spent: https://en.bitcoin.it/wiki/Mini_private_key_format#Applications


Title: Re: Where to import minikey from Casascius
Post by: BitMaxz on January 01, 2020, 10:44:44 PM
Are you going to redeem the BTC from your casacius coin?
Are you sure it's a minikey or a private key?

You need to type them one by one when importing there are many wallets that you can use I suggest you import it in a secured PC with Electrum.

Watch this video how to redeem Casascius coin from here https://www.youtube.com/watch?v=y1yydfYJFwA


Title: Re: Where to import minikey from Casascius
Post by: pooya87 on January 02, 2020, 03:26:13 AM
I think its supported by electrum but I'm not sure, it might be the best place to start though: electrum.org/#download

Electrum does support mini private keys and will import them in your wallet
https://github.com/spesmilo/electrum/blob/d2f132738a2a13d896b11ca984d94930cc1c9aad/electrum/bitcoin.py#L669-L680
but user must keep this in mind that Electrum by default will use the uncompressed public key and will derive the P2PKH address. the address type is not an issue but if any version of Casascius were using compressed key there will be a problem.
https://github.com/spesmilo/electrum/blob/d2f132738a2a13d896b11ca984d94930cc1c9aad/electrum/bitcoin.py#L578

ps. in case this was an issue bitaddress.org tool could be used. it can return both compressed and uncompressed private keys from a minikey which could be imported in any wallet. https://github.com/pointbiz/bitaddress.org