Bitcoin Forum
June 25, 2024, 11:16:12 AM *
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 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 »
621  Bitcoin / Development & Technical Discussion / Re: Wallet.dat filename obfuscation, anti-recovery techniques on: September 23, 2014, 07:17:52 PM
Quote
Tools such as pywallet can scan an entire hard drive surface for Bitcoin private keys, recovering them from deleted files and removed partitions. Can we make this a lot harder?

Lot harder for whom? For ourselves?
Let us use the simplest way: every time you are not sure that your private keys are safe...
1) create new passworded wallet.dat
2) check several times that you can lock and unlock it
3) backup it several times (as usually)
4) and transfer all your funds to new address.

Voila! Let hackers investigate your old hard drive! They will find nothing on it
(ok, you can also import old private keys to new wallet.dat)

(this response is a little OT from OP's thoughts, but regardless) That pretty much works, except that you have to mark the one address that's created before the password is added as unsafe, because it's already been saved unencrypted to the hard drive. It's also not very user-friendly, compared to creating a wallet that's encrypted before ever being saved.
622  Bitcoin / Bitcoin Technical Support / Re: Is there an ACTUAL working bitcoin app? on: September 23, 2014, 06:56:56 PM
I'm gettin really sick of bitcoin simply no longer working, period, I should have, if I did'nt already, point out that the death of bitcoin is already on the cards..

You could be right: nobody knows if this experiment called Bitcoin will stand the test of time.

Regardless, if you're sick of bitcoin, my advice to you is: leave. (Please leave.)
623  Bitcoin / Bitcoin Technical Support / Re: HD (bip32) paper wallet + mobile phone balance monitoring and address generation on: September 23, 2014, 05:49:04 PM
One other note regarding bip32.org: if you have a good source of randomness, it's probably safe to use this page. Please read and follow the advice here first: https://en.bitcoin.it/wiki/Paper_wallet#Producing_safe_paper_wallets

For ideas on a good source of randomness, this thread talks about good ways to shuffle a deck of cards to get good randomness out of it: https://bitcointalk.org/index.php?topic=682842.0. Don't come up with your own scheme to create randomness, though. There are many things which seem random, like mashing on a keyboard, which have very poor entropy.
624  Bitcoin / Bitcoin Technical Support / Re: HD (bip32) paper wallet + mobile phone balance monitoring and address generation on: September 23, 2014, 05:37:10 PM
I'm sorry, but this reply is providing more problems than solutions. Hopefully someone more knowledgeable on the state if BIP32 software will come along and help...

Re bip32.org: I'm not familiar with them, but I took a quick look. They are producing BIP32 brain wallets, which is something you really don't want.

Re terminology / printouts: you'll want to save your "master extended public key" on one sheet, and your "master extended private key" on the other. Because the master extended public key can be derived from the master extended private key, you don't need to have both on the private sheet. It's up to you if you want to encrypt your master extended private key, but if you do, you should make sure it's encrypted using the BIP38 standard (simply because it's a standard likely to be supported by many wallets).

Although you shouldn't use bip32.org to create them, just for the sake of completeness: your master extended private key is next to the label "BIP32 Extended Key", and your master extended public key can be found by choosing "Info: m" next to "Derivation Path", and then looking next to "Derived Public Key"

Unfortunately, there's a lot I can't answer, e.g.:
  • Easy and secure way to generate a BIP32 paper wallet (and not a brain wallet)
  • BIP32 mobile app that's not in beta (there are several that are still in beta testing)
  • BIP32 mobile app that supports a watching-only wallet

If you have an iPhone, you might want to look at breadwallet. I don't know anything about it, but I do see that it's apparently not in beta, and it supports BIP32. I don't know if it supports watching-only wallets.

Good luck....
625  Bitcoin / Development & Technical Discussion / Re: Wallet.dat filename obfuscation, anti-recovery techniques on: September 23, 2014, 03:51:19 PM
As you noted it's all just obfuscation, and so I assume you know how much better encryption is at privacy protection over obfuscation.

So what is it you're really trying to accomplish? Given an answer to this, the better solution is to apply encryption to what you're trying to accomplish instead of obfuscation, isn't it?

For example, are you trying to improve privacy (to make it more difficult for malware to read pubkeys, txs, and the like)? Then (as you already noted in your follow-up post) a better solution would be to add a second password, let's call it the "watching-only" password, which encrypts the entire wallet. The "privkey" password would continue to work as-is. The watching-only password would need to remain in memory, so it wouldn't protect against malware that has acquired root, but it would help otherwise.

  • Security-enhanced Bitcoin asks for your encryption password before it even makes a wallet.

This I like, given that it will prevent plaintext privkeys from ever seeing a hard drive platter. Some wallets already implement this, and it'd be nice to see Bitcoin Core do so as well.
626  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core won't take my passphrase on: September 23, 2014, 01:39:35 PM
This is mysterious....

First, a little background (if you're interested, if not just skip to the questions):

Bitcoin Core makes two checks when validating your password.

A. Run the password through a key derivation function (PBKDF1-SHA512) to generate a derived_key.
B. Use the derived_key to decrypt (with AES256) the 48-byte long encrypted_mkey (from the wallet) into a decrypted_mkey.
C. Check (1): make sure the decrypted_mkey is exactly 32 bytes long plus 16 valid padding bytes at the end.
D. Use the decrypted_mkey to decrypt a single (arbitrary) encrypted_privkey (from the wallet) into a decrypted_privkey.
E. Mathematically derive from the decrypted_privkey a derived_pubkey.
F. Check (2): make sure the derived_pubkey is equal to the pubkey stored in the wallet file.

JtR doesn't bother with check (2) in the interest of speed. This should be OK, because the likelihood that check (1) passes, but check (2) fails should be extremely small (something like 1 in 2^128).

pywallet doesn't bother with check (1) (in other words, it always "accepts" the password at first), it simply truncates the decrypted_mkey to 32 bytes in length and ignores any padding (even when the padding is invalid). It only uses check(2) (running that check against every encrypted_privkey if you answer "y" to that question it asked).

If JtR thinks you have the right password, but pywallet and Bitcoin Core disagree... than I'm not sure what's going on.

So... questions...

Could you try btcrecover (another Python script)? (use "--passwordlist --wallet wallet.dat" for its options.) It should use the same single check as JtR.

Where did you get your JtR? If you compiled it from source, how recent is it (there were some recent Bitcoin-related updates to JtR)?

Do you have any wallet.dat backups (even if they're encrypted)?
627  Other / Beginners & Help / Re: Looking for up to date advice on wallets, minors and starting for 1st time on: September 22, 2014, 11:55:12 PM
The best advice I can offer regarding which wallet is the best is "don't follow anyone's advice."

The reason is simple: different wallets are geared towards different goals. One person's personal favorite might not be a good choice for you.

Instead, visit the Bitcoin.org getting started page here: https://bitcoin.org/en/getting-started

Read step 1, "Inform yourself" (don't worry, it's not long), then move on to step 2, "Choose your wallet." At the bottom of the choose-your-wallet page there's a link to "secure your wallet" which you should read before choosing a wallet. (edited; I think I misunderstood you) You've already said that "few resources" is a requirement, so don't choose a wallet that says it's a "full node."

If you have any specific questions, please ask, I'm sure someone will be along who can help.

Oh yes, and welcome!
628  Bitcoin / Development & Technical Discussion / Re: Here is how to make a brain wallet 100 times more secure. on: September 22, 2014, 11:26:32 PM
A brain wallet, with a given password, will always be significantly less secure than a traditional wallet encrypted with that same password. Hopefully this is self-evident to everyone here.

Given this significant disadvantage, there would have to be some significant advantage a brain wallet could give you that no other wallet can before any reasonable person would prefer a brain wallet. So.... what is this advantage?
629  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core won't take my passphrase on: September 22, 2014, 10:27:56 PM
So I'm looking at the command pywallet.py --recover and it looks like it requires a size option be set. How do you what number to put in there? The rest of the command, seems easy enough.

The size option is there mostly for hard drive scans. For a wallet, just choose a size that's larger than the wallet size.

You need to append a (strange) unit to the end of the size, so for example --recov_size=100Mo means 100 megaoctets.

(Be sure to take a backup of the wallet file before running pywallet on it, just in case)
630  Bitcoin / Development & Technical Discussion / Re: Hard-Fork to make us have a have a FREE Universal lottery system on: September 22, 2014, 04:24:36 PM
Add strain to what - Bitcoin network? Don't we want more transactions with fees, not less?

Why are "more transactions with fees" desirable?

If you start with the assumption that the purpose of Bitcoin is to make money for miners, then yes "more transactions with fees" would be desirable.

But the purpose (or at least a purpose) of Bitcoin is to permit transactions and permit stored value. In other words, the decentralized transactions themselves, as well as the stored value of bitcoins, is the purpose of (capital-B) Bitcoin. Miners are just a necessary component in securing Bitcoin. Transaction spam, whether it includes fees or not, is still spam.

Technical discussions aside, OP's idea has problems for at least two other reasons.

First of all, I don't like lotteries. I like blackjack. I therefore think it would be unfair for zero-trust lotteries to be added to the blockchain unless blackjack is also added. Would anyone else like to add something? (Poker would be pretty cool I think.)

Secondly, unregulated lotteries are illegal in many (most?) jurisdictions. Although transactions can be used for either legal or illegal purposes, unregulated lotteries would always be illegal in those jurisdictions. The fact that something is illegal isn't reason enough to avoid it, for example if it were added to right some terrible evil, but I really don't see lotteries as an inalienable human right that Bitcoin should concern itself with.
631  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core won't take my passphrase on: September 21, 2014, 06:39:28 PM
I extracted the hash from the wallet
Huh There is no hashed password stored in the wallet to extract. What exactly did you do?
I ran bitcoin2john.py command that came with John the Ripper.

This means that JtR was able to decrypt the mkey (and verify that the padding bytes were correct, which makes it extremely likely that the password was correct). JtR doesn't try to actually decrypt any private keys to check them against the stored public keys.

If the first private key, or its associated public key, is corrupted, this will happen (although that seems unlikely to me...). If this is the case, `pywallet.py --recover` can help.

CDNinATL, can you let us know how this turns out? I'm personally interested...

Also, does your password contain any non-ASCII characters (any characters not list here: https://en.wikipedia.org/wiki/ASCII#ASCII_printable_code_chart)?
632  Other / Beginners & Help / Re: Newbie All-Day - Ask All Your Bitcoin Questions Here! on: September 20, 2014, 05:47:00 PM
If you worry about the printers cache, AFAIK this is usually only a problem with the big office machines that have actual harddrives in them. Most home use printers have no long term storrage.

True, but most printers run close-source software that do things many don't know about and may not want, even home printers. For example it's known that many (most?) printers will refuse to print counterfeit money using various technologies[1], and some printers surreptitiously include nearly-invisible identifiers to link the printed document to the individual printer which printed it[2]. If they can do this, who knows what could be next (I know this does sound a bit tin-foil-hattish...)

Printers can also be theoretically infected by malware remotely, although I don't think there are any documented cases of this outside a research setting[3] (not yet, anyways).

Some paper wallets / BIP32 backups (e.g. Armory) allow you to encrypt before printing. If you write down the encryption password on the printout, you'll have everything you need to restore the wallet in one place, and you'll remain safe from such printers.

[1] http://en.wikipedia.org/wiki/EURion_constellation
[2] https://www.eff.org/issues/printers
[3] http://www.bbc.com/news/technology-29203776
633  Other / Off-topic / Re: Am I the only girl on here? : ( on: September 20, 2014, 05:23:58 PM
Welcome to bitcoin and bitcointalk.

Everytime I try to mention Bitcoins while hanging out with girlfriends they always look confused and change the subject, yet they're not "dumb girls", they've been to Uni, spend a lot of time online, have paypal acc's, online banking, etc. Why are they so reluctant to hear about Bitcoins?

I am a male but I am quite interested in this.
Do your friends not trust bitcoin because of the negative publicity (for example, the connection with illegal goods) or the geeky and nerdy impression? Or do they find bitcoin not user friendly enough?  Huh

Farmer17, just who do you think you are, asking an on-topic question like this??

Seriously though, it's a good question and I'm interested to see what Fabiola! thinks.
634  Economy / Service Discussion / Re: No block in 8 hours. on: September 19, 2014, 10:05:15 PM
What if blockchain.info goes down is my wallet lost then ?

unless you have a backup.

I dont have any backup of my wallet. I only have the private keys written. Am I safe ?

There are a lot of if's here, but if you're sure it's your private keys that you wrote down, and if you're sure there are no typos, and if you never add any new receiving addresses to your wallet, than you should be safe.

Edited to add: and also if they're either unencrypted, or you are sure you know their password.
635  Economy / Service Discussion / Re: No block in 8 hours. on: September 19, 2014, 09:38:37 PM
What if blockchain.info goes down is my wallet lost then ?

With blockchain.info, you need to create backups after each new receiving address you create. As long as you have a recent backup, you can reclaim your bitcoin.

There are other online services (and also desktop wallets too) where you only need to create a single backup (either printed out or written down). You may want to consider one of these...

(They include Armory, Electrum, GreenAddress, BitGo, and probably others.)
636  Economy / Service Discussion / Re: No block in 8 hours. on: September 19, 2014, 09:22:09 PM
It is a free service and still the best online wallet, shouldn't complain.

I'd take issue with that statement... look at the choose-your-wallet page on bitcoin.org here: https://bitcoin.org/en/choose-your-wallet

There are at least two or three other free online wallets that I'd rate at least as good, if not better, than blockchain.info.
637  Bitcoin / Wallet software / Re: Offline Wallet - Questions on: September 19, 2014, 08:44:34 PM
I just wanted to add that if you choose a full-node client for your online wallet (e.g. Armory), and if you also choose not to keep that full-node client connected most of the time, you could run into delays.

Armory (the one you have running online) for will refuse to create a transaction until it has finished syncing.
638  Other / MultiBit / Re: Multibit Password Lost on: September 19, 2014, 04:18:39 PM
Do you have any older backups?

Have you changed your password over time? If so, you might be able to try to import an older (automatically created by MultiBit) backup key file using an older password.

There's also a free & open source password recovery tool you could try. You will need to do a bit of reading to get it set up and running though, so if you don't have the time, a wallet recovery service is a good option.

If you'd like to try recovering it yourself, the Tutorial and the Quick Start are here: https://github.com/gurnec/btcrecover/blob/master/TUTORIAL.md#btcrecover-tutorial

If you have any questions, feel free to ask (I'm the dev of that tool).

Good luck...
639  Bitcoin / Armory / Re: deriving chaincode from root privkey on: September 19, 2014, 03:50:19 PM
inf,

I think you've uncovered a bug in Armory's HMAC implementation. I very well could be (and in fact I hope I'm) wrong though....

In particular, this doesn't produce what I'd expect:

Code:
import hmac, hashlib
from armoryengine.ArmoryUtils import HMAC256

# Test vector case 1 from RFC 4231
key      = "0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b".decode("hex")
data     = "Hi There"
expected = "b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7".decode("hex")

print "RFC 4231 HMAC-SHA256: ", expected                                    .encode("hex")
print "  Python HMAC-SHA256: ", hmac.new(key, data, hashlib.sha256).digest().encode("hex")
print "  Armory HMAC-SHA256: ", HMAC256(key, data)                          .encode("hex")

Here's the definition of HMAC256 in ArmoryUtils.py:

Code:
def sha256(bits):
   return hashlib.new('sha256', bits).digest()

def HMAC(key, msg, hashfunc, hashsz=None):
   """ This is intended to be simple, not fast.  For speed, use HDWalletCrypto() """
   hashsz = len(hashfunc('')) if hashsz==None else hashsz
   key = (hashfunc(key) if len(key)>hashsz else key)
   key = key.ljust(hashsz, '\x00')
   okey = ''.join([chr(ord('\x5c')^ord(c)) for c in key])
   ikey = ''.join([chr(ord('\x36')^ord(c)) for c in key])
   return hashfunc( okey + hashfunc(ikey + msg) )

HMAC256 = lambda key,msg: HMAC(key, msg, sha256, 32)

I believe the problem is that this HMAC function takes and uses the hash size as a parameter (256 bits for SHA256), but it should be taking and using the block size instead (512 bits for SHA256).

Could someone verify this, or hopefully correct me?
640  Other / Off-topic / Re: Am I the only girl on here? : ( on: September 18, 2014, 12:32:28 AM
Lessons learned after reading the thread:
1. If you are a male wanting to scam the others, don't claim to be a female as it will likely make the others more cautious.
2. If you are a female, don't claim to be a female as someone will consider you to be a potential scammer immediately.

I am now wondering if the fact of almost all users on bitcointalk appear to be male is the cause or the effect of 1&2.

That last sentence is squarely on point.

With respect to your point #2, it's something I think we'd all like to see change. I don't know exactly how to change it, but until it's changed, we'll continue to propagate the all-boys-club image.
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 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!