Bitcoin Forum
June 05, 2024, 04:29:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sweeping tokens from Electrum to counterparty error  (Read 173 times)
CharlieSmiles (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 06, 2018, 03:04:48 PM
 #1

Hello,
I am trying to sweep my NVST tokens from Electrum to Counterparty.
I get a p2sh error on Electrum upon trying to sweep.
If I try to import from another address on counterparty the private key I input is flagged as not a private key.
I can see the NVST on xchain and the bitcoin transaction has been verified.
https://www.blocktrail.com/BTC/address/3CEGyqpjA6EuYuUBVPSnmUtpBexcVRrTXg

Any help would be most welcome.
Thanks,
CS
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 06, 2018, 06:33:13 PM
 #2

According to the link you posted and blockchain.info your wallet address has nothing in it, this might be the problem.

Check the first character of your private, is it a 5, K, L or something else? Others will be accepted but a U indicates it is encrypted (though electrum normally validates against this).
CharlieSmiles (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 06, 2018, 07:34:43 PM
 #3

According to the link you posted and blockchain.info your wallet address has nothing in it, this might be the problem.

Check the first character of your private, is it a 5, K, L or something else? Others will be accepted but a U indicates it is encrypted (though electrum normally validates against this).

Hi,
The private key starts with an L and there is 0.004btc on the electrum wallet.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 06, 2018, 07:40:38 PM
 #4

The 0.004BTC is not in this private key/address however (unless both wallet explorers are wrong which isn't unlikely).

If you can locate your xpub and send it me (probably by PM is better due to the security risks if one of your private keys were to leak - while  the private keys are stored only in the wallet however, your coins should be safe) and then we can work out which address actually holds the 0.004BTC in your wallet.
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
March 06, 2018, 08:31:17 PM
 #5

It's a p2sh address so it has more than one private key behind it. The one you get from the right click menu is not sufficient. Is this a 2fa wallet? It should say as much in the window title bar. Do you have the seed written down?
CharlieSmiles (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 07, 2018, 12:57:12 PM
 #6

Hi

Yes its a 2fa wallet. And I do have the seed.


HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 08, 2018, 05:38:31 AM
Merited by Abdussamad (5)
 #7

Yes its a 2fa wallet. And I do have the seed.
It looks like it is going to be a somewhat convoluted process to get your tokens out of a Bitcoin MultiSig address if the CounterParty docs are anything to go by: https://counterparty.io/docs/multisig_counterwallet/

The CounterParty MultiSig setup looks VERY messy... you have to send bitcoins back and forth between addresses:
Quote
- Send some Bitcoin to each address in each of the 3 wallets
- For each address in each of the 3 wallets, send a very small amount (e.g. 0.0001) from them back to the sender address. This is necessary to broadcast each address’ public key onto the blockchain, which Counterparty multisig currently requires to operate.

and the MultiSig address looks like:
Quote
2_1HrSbJR3fcjCDrp2mMJCzGrWR7jtYu4wq5_1Dzfoo4QmhMtHNthmC8hZBry3KPS9FUtgo_152f1mu MCNa7goXYhYAQC61hxEgGacmncB_3
Huh

I'm not even sure if you will be able to properly recreate your MultiSig wallet in the CounterParty environment, as while you will be able to determine what the 3rd address is (from the Electrum redeemscript), you will be unable to send BTC back from that address (to get the public address broadcast on the blockchain)... as only TrustedCoin hold the private key. Undecided


So, maybe have a look at this: https://counterpartytalk.org/t/how-to-create-a-send-transaction-on-counterparty/2429

Which seems to suggest you can just create a counterparty transaction using their API, and then use the Bitcoin Network to sign and broadcast it... That should theoretically work, but I can't promise it will. As for signing the transaction... looks like you might need a fully synced Bitcoin Core with the correct private keys imported into it... or maybe you can use something like (offline copy) https://coinb.in/#sign

In either case, you'll need 2 of the 3 private keys that make up your 2fa "multisig" address in Electrum, you can get private keys from 2fa wallet by doing the following:

- Get "redeemscript" for your address: 3CEGyqpjA6EuYuUBVPSnmUtpBexcVRrTXg from Electrum (right click address and select "details")
- Copy/paste redeemscript here: https://coinb.in/#verify
- Note the three "1"-type addresses that are shown
- restore your 2fa wallet from seed, DISABLE 2fa when prompted and DO NOT set wallet password
- open wallet file with text editor
- get X1 and X2 "xprvs" from the wallet file
- Create two new "standard" wallets (ie. x1wallet and x2wallet) -> Use Public or Private keys -> Paste xprv
- Match the "1" addresses from redeemscript (in step 2) with "1" addresses in x1wallet and x2wallet
- Right click "1" addresses and select "private key"

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!