Bitcoin Forum
May 25, 2024, 09:35:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 »
241  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 13, 2014, 02:35:26 PM
The instructions I gave have nothing to do with his master seed. They are for dumping address specific priv keys.

Edit: To clarify he is using the public key of an ordinary bitcoin address in his armory wallet. Not the armory MPK or anything like that. Just the pub key of an ordinary address. The instructions above are for getting the corresponding priv key and going from there.

Oh ok, I just downloaded Armory and I see what you mean now.


> arorts

I updated all the scripts and the exe to do what Abdussamad mentioned.

Please follow his instructions to find the "PublicX" and "PublicY" that you used in Electrum... then just above it you will see "PrivHexBE"

The new script will ask you for PrivHexBE and NOT the paper backup phrase.

You will get your bitcoins back! yay!

Here's the exe
https://github.com/dabura667/help_arorts/releases/download/0.1/arms.exe

Here's the scripts (use arms_mac.py if you're doing it on your mac)
https://github.com/dabura667/help_arorts/archive/master.zip
242  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 13, 2014, 01:36:50 PM
In armory:

- Double click on the wallet
- Click on 'backup this wallet'
- Select 'export key lists' radio button, click on button 'export key list'
- In the next window check 'public key(be)'
- Find the public key you entered into electrum and note down the corresponding private key (hex or wif).

The private key in armory is broken up by spaces. Remove the spaces and combine it into one long string and follow the instructions above:

https://bitcointalk.org/index.php?topic=657205.msg8258543#msg8258543

Alternatively, if you are willing to trust me, you could PM me the private key and I'll send the btc to an address you control.

He did that essentially with my script. But the Public X and the Public Y he used as his MPK in Electrum were NOT from his master seed.

I am currently working with him to figure out where his Public X and Public Y came from.

Perhaps a different wallet? (Maybe he has multiple and is mixing them up?)
243  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 13, 2014, 09:25:54 AM

Yes.

I would recommend running the exe on your offline Windows machine, though. If you run the script on your online Mac, then your offline Armory wallet's private keys have touched the internet.

From the sounds of it, you will restore all of your bitcoins. You only sent to one of the first addresses that was shown, correct?

Right now the script only generates 5 receiving addresses and 3 change addresses. This is the default number of keys shown for a new Electrum wallet.

I have explained how to run the script in Windows here, and on Mac via PM. Either way you choose, you should have the WIF private keys you need to recover your funds.

Let me know how it goes :-D

Unfortunately, I got a "Your MPK and the backup phrase MPK don't match"

BTW, what I entered as the Master Public Key in Electrum was NOT a decoded version of Armory's root key/paper backup but a concatenation of PublicX and PublicY entries shown in Armory so I never saw any "04" prefix to even think to remove it.

Any thoughts?
Are the PublicX and PublicY values in hex format?

Are each of them a 64 character string consisting only of 0-9a-f?
Concatenated it should be a 128 character string consisting only of hex digits.

Is that what you placed into electrum? Is that also what shows up in your Master Public Key area in Electrum?

Electrum's MPK is just the Public x value and the Public Y value in 32 byte hex format concatenated.

What exactly did you input into Electrum when creating the watch-only wallet? Perhaps could you PM me what you inputted and also what your Electrum is saying is the MPK?
244  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 13, 2014, 07:54:55 AM
arorts hasn't replied but if anyone else is in this situation it's actually pretty simple to get the address specific private keys.

Code:
git clone https://github.com/vbuterin/pybitcointools
pybtctool electrum_privkey <master private key in hex/wif> <number>

So if the "master private key" corresponding to the "master public key" used to create the watch only wallet is f45xxxx...xe3c and you want the private key for the first address in the wallet:

Code:
pybtctool electrum_privkey f45xxxx...xe3c  0 

If you need to convert between hex encoded private keys and WIF ones just use encode_privkey. So again:

Code:
pybtctool electrum_privkey f45xxxx...xe3c  0  | pybtctool -s encode_privkey wif

You can then import that into whatever wallet you like.

arorts had PMed me and I figured out his exact situation.

1. in armory, there is an ability to export the Master Public Key of the deterministic wallet.

2. He exported armory's MPK and used it to generate a watch-only wallet on Electrum.

3. He sent bitcoins to his watch-only wallet, and since there is no methodology in Electrum that directly allows use of the stretched Master Private Key... I basically slapped a script together that converts the Armory paper backup into the Master Private Key and does exactly what you said, except without any dependencies. (I had originally planned for him to copy/paste into an online python compiler or something... so I didn't want dependencies that weren't default contained in Python.)

Anywho, there is an example case within arms.py (it's commented out, the Armory backup seed is on two lines, one without spaces just to make it easier to copy. and the MPK that corresponds.)

Try compiling it, or just running the script in python directly. Any errors should show the error and pause (using raw_input() to wait for Enter to be pressed before closing)... also pressing enter after address gen closes as well.

Hello everyone,

I had to take some time off so I haven't recovered my coins yet. Just to make sure I follow the right process here are some clarifications:

- My offline Armory wallet is a Windows one
- My online Electrum wallet is in a Mac computer (latest OS X version)
- The MPK I used to create the seedless Electrum wallet was exactly a concatenation of the 2 publicX and PublicY keys listed in Armory so I didn't remove any initial or ending characters before entering it in Electrum

Having said that, what should be the right process that can be safely run offline? Seems like dabura667's last post?

Thanks



Yes.

I would recommend running the exe on your offline Windows machine, though. If you run the script on your online Mac, then your offline Armory wallet's private keys have touched the internet.

From the sounds of it, you will restore all of your bitcoins. You only sent to one of the first addresses that was shown, correct?

Right now the script only generates 5 receiving addresses and 3 change addresses. This is the default number of keys shown for a new Electrum wallet.

I have explained how to run the script in Windows here, and on Mac via PM. Either way you choose, you should have the WIF private keys you need to recover your funds.

Let me know how it goes :-D
245  Bitcoin / Electrum / Re: 37 BTC STOLEN from electrum NEED HELP on: August 11, 2014, 02:04:25 PM
I think the developers should work on a way to prevent this actions,

You can only lead a horse to water, my friend.
246  Bitcoin / Wallet software / Re: The Future Wallet Design! on: August 10, 2014, 01:55:38 PM
Is it possible to have one wallet control all of your alt coins? now, that would be cool.. Maybe there is that Im not aware of.

https://github.com/hivewallet/discussions/issues/6

https://github.com/hivewallet/hive-js/issues/174

Hive Wallet is looking to make an open API for everyone to use that can easily provide enough information for lite wallets of any alt.

All open source, to boot.



Of course, it's still very very very early, though. You can get a slight taste with hive-web. They support Bitcoin and Litecoin on the same seed.
247  Bitcoin / Electrum / Re: Unconfirmed Transaction on: August 10, 2014, 04:21:19 AM
Thank you dabura667 that seems to have fixed it my bitcoin came through successfully

I appreciate your help very much.

Glad to hear!

TIL that BitMinter also does child pays for parent, and it seems like they look at all possible branches...

I was under the impression that:
Code:
     1. b12a71...(0 conf 0 fees)
        /          \
Unspent A    2. 862711...(0 conf 0 fees)
                  /        \
             Unspent B    Unspent C
... you would need to spend B or C to get tx 1 and 2 confirmed... and that A would only pay for 1 and not 2...

but apparently you spent A with a little over 0.0003 BTC fee, and BitMinter placed 1, A's spending tx with fee, AND 2 all in the same block.

A very interesting discovery. I'll have to make note of that.

Glad they confirmed for you!
248  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 09, 2014, 03:00:40 AM
arorts hasn't replied but if anyone else is in this situation it's actually pretty simple to get the address specific private keys.

Code:
git clone https://github.com/vbuterin/pybitcointools
pybtctool electrum_privkey <master private key in hex/wif> <number>

So if the "master private key" corresponding to the "master public key" used to create the watch only wallet is f45xxxx...xe3c and you want the private key for the first address in the wallet:

Code:
pybtctool electrum_privkey f45xxxx...xe3c  0 

If you need to convert between hex encoded private keys and WIF ones just use encode_privkey. So again:

Code:
pybtctool electrum_privkey f45xxxx...xe3c  0  | pybtctool -s encode_privkey wif

You can then import that into whatever wallet you like.

arorts had PMed me and I figured out his exact situation.

1. in armory, there is an ability to export the Master Public Key of the deterministic wallet.

2. He exported armory's MPK and used it to generate a watch-only wallet on Electrum.

3. He sent bitcoins to his watch-only wallet, and since there is no methodology in Electrum that directly allows use of the stretched Master Private Key... I basically slapped a script together that converts the Armory paper backup into the Master Private Key and does exactly what you said, except without any dependencies. (I had originally planned for him to copy/paste into an online python compiler or something... so I didn't want dependencies that weren't default contained in Python.)

Anywho, there is an example case within arms.py (it's commented out, the Armory backup seed is on two lines, one without spaces just to make it easier to copy. and the MPK that corresponds.)

Try compiling it, or just running the script in python directly. Any errors should show the error and pause (using raw_input() to wait for Enter to be pressed before closing)... also pressing enter after address gen closes as well.
249  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 09, 2014, 02:15:37 AM
<bump> Because I edited my post with an exe file I would like people to build and verify to vouch for it.

I would publish the hash signed by my pgp key, but I am not sure whether py2exe will create a deterministically identical exe...

If anyone knows a lot about py2exe I would appreciate advice on a way to guarantee the same hash.
250  Bitcoin / Electrum / Re: Unconfirmed Transaction on: August 08, 2014, 04:27:22 PM
0 fee transactions take a long time to confirm.

0 fee transactions that have spent outputs will take even longer.

One way you can make the transaction go faster:

1. Use one of the two addresses receiving bitcoin in this transaction to send FROM
https://blockchain.info/tx/86271145e32a8971ee4852b992884198132ff85ed16c5663df5156eeb978e729

2. Send to another one of your addresses.

3. Include a fee of at least 0.0003 BTC. (You will be paying for all 3 transactions)
    1- https://blockchain.info/tx/b12a713f6b74fea07542718bc89e79f08eb22c91120f9de1a3959e86cdf9806f
    2- https://blockchain.info/tx/86271145e32a8971ee4852b992884198132ff85ed16c5663df5156eeb978e729
    3- (The one you make with the fee in it)

4. Sign the tx

5. Push it using this site by copying the signed raw transaction from the signed transaction file:
http://eligius.st/~wizkid057/newstats/pushtxn.php

Eligius has a transaction selection algorithm that states:
   If a transaction using an unconfirmed input contains enough fees to cover the kb size of both transactions combined, we will place the input transaction AND the transaction itself in the block to mine.

This is called "child pays for parent" and afaik Eligius is the only place doing it. Pushing it to Eligius will propagate the tx to the rest of the network as well, too.

However, this will probably require waiting a few hours until Eligius solves another block.
251  Bitcoin / Electrum / Re: wallet wont open [still need help] on: August 07, 2014, 05:17:44 PM
Вы должны установить новую версию. Это не имеет значения, что вы делаете со старой версией.

Ваше семя прекрасна, когда в умелых руках.
252  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 06, 2014, 04:54:30 PM
EDIT:

To others that will vouch for my executable:
https://github.com/dabura667/help_arorts
Here's the source.

I will upload an exe file to make things easier.
https://github.com/dabura667/help_arorts/releases/download/0.1/arms.exe

Although, if you take this exe and just run it on an offline computer you can keep your armory wallet safe.
but either way there's the source and instructions on how to recreate the build.

(To anyone who checks my source: fyi including the ripemd160 library in there was a workaround for the website I linked below. They didn't support ripemd160 hashing for some reason.)

^^^^^^^^^^^^^^^^^^^^^^^^

There are two ways you can go about this:

1. You can do this all online. But this will cause you do type your backup phrase on an online computer. As you must go to a website that can not be downloaded locally.

Go to http://www.compileonline.com/execute_python_online.php

In the left hand side of the window (Where it says "print "Hello World"" etc.) delete all the stuff written there, then paste in the code at the following site.

http://0bin.net/paste/+JXKiGgA1dJdBLaI#yXV7WhIlhpCpIcGieW0ibIThcYczSF7u-UxUF8dYC5P
(There's a button at the top of the page to "Copy whole text to Clipboard". It will make it easier)

Once you pasted into the left side of the first site... scroll down to the bottom of the code. You will see lots of green # symbols and an explanation.

Code:
##############################################################################################
#
#  Look at the examples below and copy in your "Paper Backup Phrase" from Armory.
#  type in the first line, then " <> " then the second line, like I in the exaple below
#
#  Also, for the second input, please paste in the "Master Public Key" from Electrum.
#  We must check and make sure Electrum has the correct MPK that matches your Backup Phrase
#  from Armory, so open watch-only wallet in Electrum, and "Wallet" > "Master Public Key"
#  and paste that long number into the area between the ' ' on the 2nd line, like the example.
#
bckup = 'aagh hjfj sihk ietj giik wwai awtd uodh hnji <> soss uaku egod utai itos fijj ihgi jhau jtoo'
#
chkMPK = '5a09a3286873a72f164476bde9d1d8e5c2bc044e35aa47eb6e798e325a86417f7c35b61d9905053533e0b4f2a26eca0330aadf21c638969e45aaace50e4c0c87'
#
##############################################################################################

Follow the instructions and replace the backup phrase that is in there with your backup Armory phrase (should be 9 words x 2 lines) and separate the two lines with <>

Then go into Electrum. The one that you accidentally made the watch-only wallet with your bitcoins.

Click "Wallet" > "Master Public Key" and copy the long number there. paste it in the second area in place of the '5a09...0c87' stuff (remember to keep the ' ' around it tho.)

Once you've entered these two things. Click the "Execute Script" button on the upper left corner.


2. If you don't want to do this online. You must have an offline computer with python 2.7 or later installed.

Copy the text from http://0bin.net/paste/+JXKiGgA1dJdBLaI#yXV7WhIlhpCpIcGieW0ibIThcYczSF7u-UxUF8dYC5P

Paste it into a new text file, Change the two items near the bottom like in option 1, save the text file as "All Files" type and in the filename box, call it "arms.py" (remember to put in the .py )

Open the terminal or Python console to the folder in which you have arms.py saved.

Run arms.py


---------------------

If you do either of these, and you actually used the Armory MPK correctly in Electrum (stripping the 04 at the beginning and removing the chain code if any) then you should see the 5 receiving and 3 change addresses that are in your electrum watch-only wallet, along with their respective WIF private keys.

Find the address that you accidentally sent to and copy down its WIF private key.

Then you can import that to whatever client you wish to restore your bitcoins.


Possible errors:

1. If it says "Your MPK doesn't match..." and doesn't show you any addresses... sorry... your bitcoins are gone.

2. If it says "Checksum error" then you mis-typed in your Armory backup phrase.

3. If it says anything else, or the addresses don't match what you accidentally sent to, then let me know.
253  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 06, 2014, 09:21:46 AM
I think you have a fundamental misunderstanding of how Electrum and Armory work.

Right now, you are not making any sense.

I can most likely help you, but tell me exactly what you have, and separate it by Electrum and Armory:

ie.
Code:
Armory:
Chain code
Master public key
Seed
Backup

Electrum:
Watch only wallet
Private Key of one of the addresses in the watch only wallet.
254  Bitcoin / Electrum / Re: How to view balances in cold wallet? on: August 04, 2014, 06:05:35 PM
You don't need history for the cold wallet. You just need to load transactions and sign them.

Cold wallets only need to sign, and they don't need a history or the same number of addresses as your watching only wallet to sign them.

Your cold wallet will always just show 5 addresses and 3 change addresses with no information about balance or history.


There is no need for the cold wallet to do anything but sign transactions.
255  Bitcoin / Electrum / Re: Electrum - Bitcoin client for the common users (friendly and instant) on: August 03, 2014, 03:42:15 PM
Point taken. Still opposed to recommending coinbase or similar, though.

Why not recommend to get a trezor? Makes security easy.

I want to, just two problems:

1. $119 is kinda steep for someone just getting into Bitcoins. I'd rather recommend something like Coinbase or Circle than sound like I'm pushing a product.

2. I have yet to see a Trezor in action, nor do I have the funds to purchase one myself. If I were to recommend something, I would like at least a rudimentary understanding of how to perform each action with the device, but there seems to be a lack of videos on Youtube that show every single feature... so until I can fiddle with one, or someone puts a detailed walkthrough on Youtube etc. I feel like I'm not qualified to recommend it. (It would be like recommending a friend of a friend... and that kind of irks me.)


Again, I completely agree with the Coinbase sentiment, but I use them to purchase coins and so does my mother too. (She, on the other hand, has decided to keep them on Coinbase because she's afraid of tech things... yet she wanted bitcoins.) I just send them to my offline Electrum as soon as they post.


I will definitely pick up a Trezor eventually... but for now... just saving up.
256  Bitcoin / Electrum / Re: Cannot Send Bitcoins on: August 03, 2014, 12:05:58 PM
Electrum 1.98 windows installer. Windows 7 64 bit o/s.

Go into the Console tab and type in:

Code:
>> listunspent()

and hit enter.

It should show you a bunch of groups of text. One group of text will look something like this:

Code:
    {
        "address": "<one of your addresses>",
        "coinbase": false,
        "height": <Some #>,
        "is_pubkey": false,
        "prevout_hash": "<Some hex text here>",
        "prevout_n": <some #>,
        "scriptPubKey": "<Some more hex text here>",
        "value": "<Some number>"
    },

Tell me, how many groups like this do you see when you run that command?

About how big are each one's "value" on average (you can ballpark it, I don't need to know your balance.)
257  Bitcoin / Electrum / Re: Electrum - Bitcoin client for the common users (friendly and instant) on: August 03, 2014, 11:52:50 AM
Excuse the intrusion, but why on earth would you recommend coinbase? Users should be in sole possession of their keys. Reddit is full of reports about coinbase holding BTC hostage due to overblown kyc/aml shit.

It seems coinbase is the new PayPal. Don't recommend it!

"I think I should test my wallet by typing my seed into a friends computer to see if it works"

At this point, I would think that no amount of explanation could save this person's ability to secure his bitcoins.

At least with Coinbase, they protect your bitcoins in a similar fashion to a bank, so most people are used to that.
258  Bitcoin / Electrum / Re: Cannot Send Bitcoins on: August 02, 2014, 09:12:58 AM
I am not sure what kind of problem is going on. Could you tell me which version you are using? (ie. portable? install? from source? what OS? 1.9.8? etc.)
259  Bitcoin / Wallet software / Re: I lost 14.47 bitcoins due to an error in blockchain.info iOs app on: August 01, 2014, 07:40:40 PM
Since blockchain.info finally acknowledges that their iOs app was the cause for me losing my private key. I too would like my funds back.

So you were able to contact someone at blockchain.info and they told you that the comment escaping issue is what caused your problem?

If a comment escaping issue caused the problem, you just go into the wallet file and escape the comment properly, and your private key should be recognized properly.

When you say you "searched everywhere through your backup" what does that mean? Was the backup something taken after generating the new address on your phone?

When you generated the address, did you tap "Enter" at all? (ie, did you add a line break in your label?)


That one guy got his funds restored because they were never gone. The app just couldn't read the private key because the comment the user put in was in effect "hiding" the rest of the wallet file from the app.

If you open the wallet file, you should see something like:

Code:
{
"version" : "2.0",
"pbkdf2_iterations" : 10000,
"payload" : "<gibberish>"
}

The <gibberish> is your encrypted wallet. Decrypt those contents using:

Code:
The exact AES specifications are n rounds of PBKDF2, Block Mode CBC ISO10126 padding.

PBKDF2 would be 10000 rounds in the example given above.

Code:
Crypto.AES.decrypt(enc_json, password)

Then you should get something like this:

Code:
{
"guid" : "abf66471-fe0a-6820-8877-55d7e8c1f6b2",
"sharedKey" : "5ad12271-57d5-6ad8-79ce-49785a99f539",
wallet_options :
        {
            pbkdf2_iterations : 10, //Number of pbkdf2 iterations to default to for second password and dpasswordhash
            fee_policy : 0,  //Default Fee policy (-1 Tight, 0 Normal, 1 High)
            html5_notifications : false, //HTML 5 Desktop notifications
            logout_time : 600000, //Default 10 minutes
            tx_display : 0, //Compact or detailed transactions
            always_keep_local_backup : false //Whether to always keep a backup in localStorage regardless of two factor authentication
        },
"keys" : [
{
"addr" : "1Fqdu8waAy53dFKqjBgRgbciLjHQyDrdyY",
"priv" : "HtacbtAnGRxvecHkjf3Jia5r8TZRpnwZek1aU7CApYDi",
"tag" : 2,
"label" : "Savings"
}
{
"addr" : "1Fqdu8waAy53dFKqjBgRgbciLjHQyDrdyY",
"priv" : "HtacbtAnGRxvecHkjf3Jia5r8TZRpnwZek1aU7CApYDi",
"tag" : 2,
"label" : "Savings"
}
{
"addr" : "1Fqdu8waAy53dFKqjBgRgbciLjHQyDrdyY",
"priv" : "HtacbtAnGRxvecHkjf3Jia5r8TZRpnwZek1aU7CApYDi",
"tag" : 2,
"label" : "Savings"
}
 }

The problem would occur that the user you mentioned added a line break in the label / comment...

Code:
"label" : "Savings\\n"
This is how it SHOULD look
Code:
"label" : "Savings\n"
This is the bug.

Because they forgot to add the slash in, the computer thinks that the json ends mid-string, This causes an error, and the object which it is contained: ie,

Code:
{
"addr" : "1Fqdu8waAy53dFKqjBgRgbciLjHQyDrdyY",
"priv" : "HtacbtAnGRxvecHkjf3Jia5r8TZRpnwZek1aU7CApYDi",
"tag" : 2,
"label" : "Savings\n"
}
The computer would read this, hit the "\n" and throw an error on the \ part and the entire object (from addr all the way down) would not be read properly.

IF this was your problem (I have no idea) You just need to add an extra \ in there (or delete the line break... I mean seriously... who needs a line break in their label?) and your funds would be fine.


However, I don't know if this is your problem, as I have not seen your wallet file.
260  Bitcoin / Wallet software / Re: Lost bitcoin with bitWallet on Iphone. Please help on: August 01, 2014, 06:59:22 PM
I accidentally did that

You accidentally tapped the lower left Edit button

Then you accidentally tapped the small red minus button next to your wallet.

Then you accidentally tapped the large DELETE button on the right side of your wallet (that appears only after tapping the red minus)

Then you accidentally tapped the red "Delete Wallet" button at the bottom of a warning message with red letters saying "If you delete your key you can not recover your funds."



1. You must be very prone to accidents.

2. That last warning screen says "Unless your Private Keys are safely stored elsewhere you will lose your Bitcoins!!" so I think the answer to your question is "You've lost your bitcoins."

I don't think there's some big secret, like "if you tap up up down down left right left right B A then it will undo all deletes" or something.


I am sorry for your loss. Perhaps something more like Coinbase would be better for you?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!