Bitcoin Forum
May 10, 2024, 12:21:14 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 »
221  Bitcoin / Electrum / Re: Converting online wallet to watch-only on: August 30, 2014, 12:28:57 PM
Code:
electrum -w /path/to/wallet/file deseed

This will deseed whatever wallet you set the path to.
222  Bitcoin / Wallet software / Re: BIP32 iOS hot wallet with watch-only support on: August 30, 2014, 12:50:39 AM
Hi,

I hope I haven't overlooked something obvious, but I am looking for an iOS wallet to use as a hot wallet on my iphone (save it please!)

Now, I just need a relatively simple set of features (I hope), I want the wallet to be a hierarchical deterministic type, where each transaction has change sent to the next address in the chain, to preserve some semblance of privacy.

I would also like for it to be able to watch addresses in watch only mode.

Anybody got any ideas?

1. iOS wallets with BIP32 support: Breadwallet, Hive Wallet, BitWallet.

2. iOS wallets with BIP32 and change addresses supported: Breadwallet and Hive Wallet. (Not: BitWallet, they merely show you all the BIP32 addresses on your chain and you treat them as individual addresses.)

3. Watch only address Support: Bither. (However, this only supports individual addresses. It does not support watch-only deterministic (a la Electrum))


For #3 I was assuming you were talking about deterministic watch-only support.

I have heard discussions on the Hive Wallet issues board discussing import/export of xpubs to allow for watch-only mode... but Breadwallet is pushing "ease of use" and all issues suggesting advanced functionality have been shot down. (Understandably so, he wasn't making the project for advanced users.)

Also, info from Electrum: The Kivy version of Electrum (for Android, they will actually release this one on the Play Store) uses the Python compiling suite "Kivy" which notably supports compiling into iOS. When asked about possibly porting the Android version into iOS, the guy heading the Kivy app said "It is probably a few GUI fixes away, so we'll look into it after the Android version is out the door" so that might be coming in the next few months.
223  Bitcoin / Electrum / Re: 1.5 btc lost in fee ? HELP on: August 27, 2014, 04:46:03 PM
I understand , do yu know how to find the pool ?


https://blockchain.info/tx/f3d3d266fb32cbb971d2ca72a9b2df7e25033f9599e648a83ba3e0ee93b2a1ac

Look at this transaction page.

The 3rd part in "Summary" says the transaction is included in block # 317750

You can click that number to check the block's information.

In the Block information summary it says "Relayed By       Eligius"

take the link above and replace the transaction ID of the example transaction with YOUR transaction (that sent the 1.5 fee)


Do the same process to check who it was "relayed by"

Tell us who the block was relayed by and we'll help you find a way to contact them if we can.
224  Bitcoin / Project Development / Re: Creating a Bitcoin suite for...... Excel VBA! on: August 27, 2014, 10:27:50 AM
Right. So, to start with, you could see how windows standard libraries (DLLs in this case) are called.

(I believe there are no declarations like that in your code, otherwise you'd already know; so this might or might not be helpful as a start).

Take a look at some declarations for some API calls I call directly from a VB (or VBA) project.

"user32" refers to user32.dll

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

    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
    ByVal wParam As Long, ByVal lParam As Long) As Long
    Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)


Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Public Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4
Public Const MOUSEEVENTF_RIGHTDOWN As Long = &H8
Public Const MOUSEEVENTF_RIGHTUP As Long = &H10


Thanks for the tip.

Do you know any source that can explain these types of libraries that are default on a windows machine? (we use Windows 7)

Also if you could point me to BigInt classes and/or any crypto libraries that can perform calcs with SECP256K1 that'd be awesome!

Thanks for the pointers!
225  Bitcoin / Project Development / Re: Creating a Bitcoin suite for...... Excel VBA! on: August 24, 2014, 01:09:32 PM
Found a couple bad bugs. Fixed one.

1. (Fixed, and updated the file on Dropbox) If the private key works out to a hex number less than 64 digits (32 bytes) long, it tries to add it in to the WIF privkey without adding any padding 0s, causing incorrect WIF private keys to be made. I added a parameter to the IntoHex function to set a length that will be padded if too short, and display a message box and terminate the process if too large (shouldn't be too large in the Sub there, because I mod it by the curve order)

2. Some times...... LargeMod somehow gets a "-" negative sign stuck in the middle of its numbers and throws errors in the other functions... I set up some traps with "DoEvent" so that I can set breakpoints on those problem areas... but I messed up and deleted the private key which was causing the bug... and now I've tried about 500 different private keys (each key having hundreds of LargeMod passes in its calculations) and still haven't been able to find another instance of this bug... Seems very rare.

Again, this is NOT for serious use.

I just came here looking for VBA pointers, AND to share what I did with the community in case someone can polish it up into a super beefy efficient machine of an Excel book.

If anyone has any good resources for using VBA as a "gluing language" (ie. how would I implement calls to C+/C code / Windows libraries? Would those all be bundled up in the excel book? etc.) any links or advice would be appreciated.
226  Bitcoin / Project Development / Re: Creating a Bitcoin suite for...... Excel VBA! on: August 23, 2014, 07:39:54 PM
I suggest that you learn how to use VBA as a "glue language" to invoke Windows Cryptographic Service Providers and then implement your own CSP or generic DCOM object in C/C++ and invoke it from VBA.

Sounds interesting. I'll have to look into it.
227  Bitcoin / Project Development / Creating a Bitcoin suite for...... Excel VBA! on: August 23, 2014, 10:52:28 AM
Hi All.

As a method of studying VBA's ins and outs, I set out to build a Bitcoin suite that would perform some of the basic operations necessary for Bitcoin usage.

I currently have the following things (very poorly) implemented:

1. SHA256 class module (borrowed from Phil Fresle http://www.frez.co.uk)
2. RIPEMD160 class module (coded myself, used some Functions from SHA256 class)
3. A crypto module with a simple, super-inefficient implementation of SECP256K1 curve of EC math. (Add, Double, Multiply, Inverse Mod, etc.)
4. I have a simple sheet that will generate a "random" new address and show both compressed and uncompressed forms. AND it allows input for a brainwallet.

Goals:

1. Learn more about VBA and coding methodology for it. (for work...)
2. Make the crypto as efficient as possible. (Currently takes anywhere from 1 to 2 minutes (depending on PC specs) to perform one EC multiply with a 256 bit scalar.)
3. Implement BIP38, BIP32, and BIP39. (These will require writing/finding class modules for SHA512, HMAC, Scrypt, etc.)

Note:

- I am doing this with the intent of learning what VBA is possible of, and in the process gain the skills to implement macros etc. at my company to increase efficiency.
- Anyone else who thinks this is a fun little hobby-esque project and would like to help out, I would be more than happy if someone gave me pointers.
- The goal #3 probably won't go anywhere until I can clear #2.


Current Implementation:
https://www.dropbox.com/s/6meu983y0busbng/Bitcoin_Address_gen.xlsm
(All protected sheets etc. are protected with the password "password")

I will put the classes and modules separately up on Github if someone else wants to contribute.

Any pointers, musings at my horrible coding, trolls, etc. are welcome! But I would definitely appreciate any tips to make EC Multiplying faster.

Thank you all in advanced!
228  Bitcoin / Electrum / Re: [REQUEST] Support more block explorers on: August 23, 2014, 10:02:25 AM
As far as official releases are concerned. Wait for 2.0

If you are a developer, and/or are able to tolerate a lot of bugs. Then you can use the latest development master branch.

This option is already implemented.
229  Bitcoin / Wallet software / Re: Considering Electrum and Hive; which to choose? on: August 23, 2014, 01:01:14 AM
My 2 cents:

Using Electrum, or Hive-web/Hive-iOS is a good idea. Hive for OSX (Mac computer) is not ideal.

Reason:
Because Electrum and Hive-web/Hive-iOS use what is known as "Deterministic" wallet structures.

What is a "deterministic" wallet, and how does it differ from a normal (ex. Bitcoin Core / Hive-OSX) wallet?

1. A normal wallet must be backed up frequently. Whether this is once a month or once a year or once a day depends on how much you use it, and it is also not intuitive as to when you are using new addresses that were not in a previous backup. (Especially Bitcoin Core, because they actually create hundreds of addresses in the background and hide them from the user with no notification as to how many you have used.) Because of this, people who are (rightfully) paranoid tend to backup their wallet.dat file frequently, and then remembering which backup has which password etc. can become confusing and lead to loss of access to the user's bitcoins.

2. In comparison, Deterministic Wallets only need to be "backed up" once. This is because the 12 word phrase that is given to the user upon creation of the wallet IS the wallet itself, and all new addresses are generated FROM that information in an indexable way. (ie. if I take the 12 word phrase, then pick a number like 56. Every time I put those two pieces of information into the wallet software it will ALWAYS generate the same address.) Because of this. Deterministic wallets usually let the user use the most recent, non-used address in the "chain" of addresses. Because of this, if you take the 12 word "seed" and use it in wallet software to restore your bitcoins, it just keeps checking each address from 1 to infinity until a certain number of unused addresses appear, then the wallet assumes "ok, this person didn't use addresses 78 - 88, so we'll assume his wallet only contains addresses 1-77." etc.

3. Also, another interesting feature of Deterministic wallets is the fact that this "chain of addresses" can be generated WITHOUT the private keys AT ALL. This allows you to set up an online computer that only watches balances and manages transactions. Then create a separate, offline computer / boot device that contains the PRIVATE keys (to spend your bitcoin). A normal wallet can not do this, as normal wallets REQUIRE the private key in order to generate the addresses. Explaining why/how this works is very difficult... so unless you want me to bore you with Elliptic Curve math, just know that it is possible.

However, there is one drawback of deterministic wallets, and I explained it in the thread on the Electrum subforum.

4. Using "Export Private Key" on Electrum is dangerous. So if you need to use some sort of service that requires importing private keys. It is recommended to send bitcoins to a separately generated address (like from bitaddress.org) and then use THAT private key. The reason why is complicated. (You said you couldn't understand on the thread) But in short, a person who knows ANY ONE of the private keys generated from your Electrum wallet AND the "MPK" (Master Public Key) from the same Electrum wallet can then generate ALL of the private keys from your Electrum wallet. So it is considered to be a BAD IDEA to export private keys from a deterministic wallet, but SOME services for bitcoin require/allow importing private keys. This can confuse the user and lead to stolen coins.

HOWEVER. As long as you treat every private key in your Electrum wallet as if it were a "Master Private Key." You will be fine.


Hive-web/Hive-iOS understood this and 1. Does not allow exporting of the Master Public Key. and 2. Does not allow exporting of any private keys. (However #1 prevents people from doing an offline cold storage wallet solution)



tl;dr

If you are holding a large amount of bitcoins. I would suggest reading any number of "sending from cold storage with Electrum" guides and using Electrum. PLEASE WRITE DOWN THE 12 WORD SEED ON A PIECE OF PAPER, AND TRIPLE CHECK THE SPELLING AND ORDER OF ALL 12 WORDS BEFORE STORING THE PAPER IN A SAFE PLACE. (ie a safe or something) Many people "forget" to write it down, or "was meaning to get around to writing it down, but then my computer crashed" and they lose bitcoins. AS LONG AS YOU HAVE THOSE 12 WORDS, YOU HAVE YOUR BITCOINS.

If you are using small amounts for spending, and you have an iPhone. I would suggest using Hive wallet for iPhone and https://web.hivewallet.com/ with your computer. These two can accept the same 12 word phrase and use the same wallet on your phone as your computer.

Keep in mind, though, that Electrum 12 word seeds and Hive / Breadwallet / Wallet32 / other deterministic wallets are NOT compatible. So as a general rule of thumb, use the same 12 word seed with the same service to recover your bitcoins. Using the 12 word seed from ONE service on a different service may not restore your bitcoins correctly.
230  Bitcoin / Wallet software / Re: How to use BitcoinJS in a normal website? (not using node.js or anything) on: August 22, 2014, 01:23:17 PM
Crypto-JS is a vital part of BitcoinJS. It's basically all the Elliptic Curve calculations.

Without it you wouldn't be able to turn a private key into a public key.

Is the problem that you just don't understand it? or is it that you have some sort of limitation on your site?

If you have a limitation, please specify the limitation in detail, and someone can help you better.
231  Bitcoin / Wallet software / Re: Deterministic wallet as hash(seed+index) is that OK? on: August 22, 2014, 10:50:30 AM
You just explained how hardened keys work in BIP32.

Yes, you can do this.
232  Bitcoin / Electrum / Re: Electrum not opening, lost seed. Help needed ***Reward*** on: August 22, 2014, 10:46:29 AM
wow...

over 100kb of 0x00 bytes.

Either this is a troll, or someone made an elaborate virus that steals bitcoins and then writes over the file with 0x00 bytes...

Yeah... that file will not restore anything.

I'm sorry, but unless you have the file with the actual data in it, or can somehow recover it by other methods... (Windows Restore?... I don't think that would restore it, but you could try.)

It would seem like your bitcoins are gone.
233  Bitcoin / Electrum / Re: Electrum not opening, lost seed. Help needed ***Reward*** on: August 21, 2014, 06:59:46 PM

I think I know why you "saw nothing"

Did you drag default_wallet and drop it on Wordpad? This does not open the file. This is how you paste images.
You have to click "Open" to open files...

but either way... I just remembered wallet files don't have line breaks anyways, so Notepad is fine.


Open the default_wallet with Notepad and try finding the "seed" area.

http://0bin.net/paste/aOXhNOA+aaO06p91#NyNjnyWkEt0Tga6PxCTgASmMcyChXKFkz+13SPM7F86

Here's a simple script I set up to decrypt the seed. You just need to replace the 'a' part at the top with your password and the '<seed_gibberish>' with your actual seed.

Then just run that script through python.

You should get some letters and numbers that look like this:
Code:
cfad59dfc9babdfcfbad95r957234524

If it doesn't look like this, and it's a bunch of invalid characters (ie not letters and numbers, but weird machine code looking stuff) then your password or your seed is wrong (remember to copy over the entire seed including = signs etc. and remember that both your password and the encrypted seed must be surrounded by ' apostrophes.

So if your password was cat:
Code:
seed_password = 'cat'

etc.

Once you have this 32 character long hexadecimal string of numbers and letters, you can actually paste that into Electrum's "Seed restore" box as-is and it will restore your bitcoins (you don't need to know the word phrase. The word phrase is just masking this hex number, and Electrum can recognize it.

Rename default_wallet into default_wallet2 or something, then try starting Electrum. It should show up with a wizard. paste in the hex string you got, and your bitcoins should be restored.

As far as where you can run the code... you could download Python and install it, then run the script on your computer.

Or if you want to trust me, I can compile the script into an exe file for running on your windows machine.

If you'd like to download Python, click here.

https://www.python.org/download

Download one of the two following:

32-bit Windows 7 = Python 2.7.8 Windows Installer (Windows binary -- does not include source)
64-bit Windows 7 = Python 2.7.8 Windows X86-64 Installer (Windows AMD64 / Intel 64 / X86-64 binary [1] -- does not include source)

I am not sure if the script works with Python 3... which is why I am not recommending it. (I have 2.7.Cool
234  Bitcoin / Electrum / Re: Electrum not opening, lost seed. Help needed ***Reward*** on: August 20, 2014, 07:42:27 PM
I've created a version of 1.9.8 for you that includes a debug window. Please make a screenshot of any potential error messages you find there.

Download Electrum 1.9.8-dev and the signature.

Now before you open it please go to the official Electrum site verify https is enabled and the domain is correct. Then look for my pgp key (Maran Hidskes) there and verify the signature. Here is a step-by-step guide for doing that on windows.

Only after completing these steps run the app and give me the information it gives you.

This is a printscreen of what came up - http://postimg.org/image/4ys7re7fp/. Thanks
I agree with Abdu.

Please tell us every file and folder that exists in your x:\Users\<user>\AppData\Roaming\Electrum folder (where x is your system drive and <user> is your windows username)

Then also tell us every file that exists in the "wallets" folder within the above folder.

If you can, maybe take a screenshot, we can see what you are dealing with.


This doesn't look too good... but if you have another wallet file or copy of the file... perhaps it's there...?
235  Bitcoin / Electrum / Re: Electrum not opening, lost seed. Help needed ***Reward*** on: August 20, 2014, 11:36:26 AM
1. Copy the default_wallet file to a safe place while you do this, just in case you mess something up.

2. Open default_wallet with Wordpad. (Not Notepad)

3. Search for the word "seed" and tell me if you see something like this:

Code:
'seed': 'hGt+sQGFlt7Dhgb3a1kHetNJmlxrMQrZ3D8mheYgVr79ZEGOZK1btAzv44QMwGQ2K+1a/1ct10abxrX56OtvFA==',

If you see this, then your bitcoins are safe. This is your seed encrypted using AES with your password.


Tell me if you found this. I can help you recover your bitcoins if you have this.
236  Bitcoin / Wallet software / Re: Android wallets on: August 18, 2014, 06:07:38 PM
I went with GreenAddress

they have some kind of instant confirmation, I don't know how it works but seems cool, it's also deterministic Cheesy

I'm wondering do I have to send all the coins to the address on my phone or what?  Undecided

Is there some way I could plant the .dat to avoid this Cheesy

No.

You must send your bitcoins to the wallet. Greenaddress does NOT support importing outside addresses.


Also be sure to set up an e-mail address and get your nLockTime transactions sent to your e-mail.

That way if GreenAddress ever disappears you'll get your bitcoins back. Otherwise, no coins.
237  Bitcoin / Electrum / Re: 37 BTC STOLEN from electrum NEED HELP on: August 15, 2014, 04:27:45 PM
Hi thomas thanks fr the reply. But still they need my password to transfer money? So how they did it mate?

To add to Thomas's "Lessons Learnt":

- If you're going to invest large sums of money into something, at least learn how it works.

You should not be putting your coins in anything you don't fully understand.


The Electrum "seed" is just 16 bytes of random data (shown to you as 12 words). This random data is the "key" to all of your bitcoins.

In other words. Anyone who knows those 12 words can spend your bitcoins.


The password you set when you create a wallet does the following:
- It takes the 16 bytes of random data, aka your "key" ("seed") and it encrypts it. Encryption means that "If you don't put the password in correctly, no one can look at your random 16 byte "key.""

- This means that normally, your computer has a bunch of data that, when joined with your password, will recreate those 12 words for you.

HOWEVER.

You took those 12 words and you left them on your e-mail account.

Anyone who knows those words can spend your bitcoins.

Someone hacked your e-mail, and saw your seed. (Let me guess: did you save it as a Draft and Write something like "Electrum Seed: ...")

In fact, I'm sure there was some way to know your e-mail address, and that it was an e-mail address was connected to you, and that you had a lot of BTC.



There's another lesson learned:
- Never tell anyone how much BTC you own. You're painting a target on your back.



Take the time to learn, or learn the hard way. That's how life works.

Sorry you had to learn the hard way.
238  Bitcoin / Electrum / Re: Electrum not opening on: August 14, 2014, 12:02:15 PM
I can't open my electrum wallet any one have any ideas of fixing this? maybe copy my wallet file and reinstall electrum?
Delete config file and restart.

This exact question has been asked about 5 times in the last week, please check other threads and try everything before making a new post.
239  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 14, 2014, 03:38:07 AM
However, if I do again exactly what I did before but derive the private key using the script you provided in an offline computer BEFORE I send any coins to its public address, I should be in good shape.

Why are you using armory to begin with? If you want an offline cold wallet with watch-only compononet, Electrum is just as secure as Armory. Armory is only more secure on the online component, as it has the blockchain locally. But you seem to be wanting a light client. So Electrum sounds good for you, if you'd just use it normally.

First of all, my script is not cryptographically secure. I slapped it together so that hopefully it would generate your address. However, there is NO GUARANTEE that every private key listed will definitely correspond to the address listed. Be warned.

Also, the addresses being generated, even if you use Armory's paper backup seed, will NOT be the same as Armory. ALSO, if you decode the paper backup into hex and input it as a restore seed for electrum, you will get COMPLETELY DIFFERENT ADDRESSES from my script AND Armory.

So in summary, either switch to Electrum and send your bitcoins there, or just download the blockchain in Armory. Don't mix the two systems.


I am very glad to have helped!

You can pay the bounty to my tipping address in my sig or the address I pasted in my post a little while back.

Stay safe!
240  Bitcoin / Electrum / Re: [How Electrum Works] Why you should be careful with your private keys. on: August 13, 2014, 11:26:51 PM
I'm getting the feeling that I should have used Armory's root key/paper backup (2 text lines) when I created my Electrum wallet (after necessarily removing the "04" and using only the next 128 chars), is that correct?
NO

That is NOT correct!

Armory and Electrum use fundamentally different algorithms to generate keys, so using the SAME MPK and SAME root seed will generate DIFFERENT addresses.

If you would like to use Electrum, install Electrum on your offline computer and create a new wallet.

Electrum and Armory are NOT compatible.

I am 100% certain your bitcoins will be recovered this time, but next time you might not be so lucky.
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!