BitShares Forum

Main => General Discussion => Topic started by: Rune on January 15, 2015, 05:56:11 pm

Title: wallet_import_private_key failing to parse WIF?
Post by: Rune on January 15, 2015, 05:56:11 pm
I was trying to figure out the easiest way to use GATEBTC.

set up a fresh blockchain.info wallet and tried to import the private key into BTS, but I keep getting this error, even though to me the private key looks like it's correct?

>> wallet_import_private_key 5H2m3sfuRM51FwxeMURLto7sqZ58mgQYi7jrRxGAFKrK

10 assert_exception: Assert Exception
false: Error parsing WIF private key
    {}
    bitshares  wallet.cpp:1498 bts::wallet::wallet::import_wif_private_key

    {"account_name":null}
    bitshares  wallet.cpp:1500 bts::wallet::wallet::import_wif_private_key

    {}
    bitshares  common_api_client.cpp:2748 bts::rpc_stubs::common_api_client::wallet_import_private_key

    {"command":"wallet_import_private_key"}
    bitshares  cli.cpp:579 bts::cli::detail::cli_impl::execute_command
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: toast on January 15, 2015, 06:03:55 pm
https://github.com/BitShares/bitshares/issues/1257
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: theoretical on January 15, 2015, 06:16:16 pm
Obviously, after posting this private key on a public forum, you should not use it for any funds.
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: Rune on January 15, 2015, 06:25:39 pm
While we're at it, the client confuses the BTS fee with a GATEBTC fee, so it won't let me send GATEBTC if I don't have at least 0.5 in the wallet. I guess this is a general problem with UIA's that you're already aware of but I just wanted to show it.

http://imgur.com/ScaKkVv
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: deprdoo on January 15, 2015, 06:44:39 pm
I think the import private key would work if you specified an account name.

As for the GATEBTC fee problem I had the same problem, but it worked from the command line.
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: Rune on January 15, 2015, 07:53:06 pm
I think the import private key would work if you specified an account name.

As for the GATEBTC fee problem I had the same problem, but it worked from the command line.

I will try with specifying an account name. I was able to import a electrum wallet through the GUI without any issues, but then it didn't show the GATEBTC transaction because I guess it's still configured to look for stealth transactions and now has to scan through the entire blockchain before it'll find the transaction :(
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: xeroc on January 15, 2015, 07:55:31 pm
the easiest thing would be to go the other way round with the private keys ..
export a private key from one of your accounts and import them to electrum .. your that address to send BTC ..
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: Rune on January 15, 2015, 08:04:09 pm
the easiest thing would be to go the other way round with the private keys ..
export a private key from one of your accounts and import them to electrum .. your that address to send BTC ..

I've already done that, and it works. But it's a hard sell to get ordinary people to go through with this, they'll have to use the console to get the private key, and have to send bitcoin to themselves and wait for confirmation twice before they can start trading.

Unfortunately with the long transaction scanning it seems like it's the only option... I'm still only halfway after 30 mins :P
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: jamesc on January 15, 2015, 08:26:24 pm
The private key has a different version number.  You can't edit it by hand.  It should be possible to check the version and use some magic to import it; lets see what they say at github...
Title: Re: wallet_import_private_key failing to parse WIF?
Post by: jamesc on January 16, 2015, 12:58:44 am
While we're at it, the client confuses the BTS fee with a GATEBTC fee, so it won't let me send GATEBTC if I don't have at least 0.5 in the wallet. I guess this is a general problem with UIA's that you're already aware of but I just wanted to show it.

http://imgur.com/ScaKkVv
A preview transaction feature is being discussed for the market.   That is what is needed here too.