Bitcoin Forum
May 25, 2024, 12:59:05 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 42 43 44 45 46 47 48 49 50 51 52 53 54 »
741  Bitcoin / Development & Technical Discussion / Re: What could cause an offline wallet.dat file to become worthless? on: August 29, 2011, 04:54:34 PM
If *anyone* forks off an older part of the block chain, to erase your precious transactions, the whole bitcoin community will notice. Many things can happens surrounding the block chain and the bitcoin's value, but it won't go unnoticed. Furthermore, even if that would happen, and allowed to pass, your own transaction that credited your offline address isn't necessarily invalid.
742  Bitcoin / Bitcoin Technical Support / Re: Restoring backed up wallet.dat on: August 29, 2011, 04:00:51 PM
You're not rescanning - you're just redownloading the block chain. It will take a while, but don't worry.

Next time, leave blk0001.dat and blkindex.dat in place - since 0.3.21 that should work fine.
743  Bitcoin / Development & Technical Discussion / Re: [new feature discussion] -fastboot on: August 25, 2011, 10:23:32 AM
And indeed, most of the time is spent validating the block chain, not downloading. Before 0.3.24, larger blocks often caused disconnects when sending because of an anti-spam measure. That is/was also a cause of delay when starting up, but is slowly improving, as more nodes (and thus potential download partners) upgrade to 0.3.24.

But here we are not validating blockchain block-by-block (which takes a lot of CPU). I just verify md5um of a file which contains 140000 blocks.  It's  much much faster.

Of course it is. That's not what I meant. What you are doing is useful, but it does not have the same security guarantees. Right now, through hardcoded block hashes in the client, the maintainer has the ability to force a particular chain onto you, but that chain must still exist and be valid. If the hash of the entire block file is hardcoded in the client, the maintainer can effectively make you get an invalid block database.
744  Bitcoin / Bitcoin Discussion / Re: Lost Bitcoin when transfering to different wallet! using a valid wallet address! on: August 23, 2011, 06:40:47 PM
It is very unlikely that -rescan helped - all recent versions of bitcoin do rescanning automatically when necessary.

My guess is that you switched to the second wallet before the transaction from the first wallet made its way into the block chain. When switching back, it resubmitted, and the second wallet got it.
How does the recent client determine when rescanning is necessary?

It stores some hashes of blocks in the current tip of the block chain in the wallet file. On startup, the latest common ancestor of the block chain database and the wallet file is searched for, and a rescan starting at that point is performed.

I believe this was added in 0.3.21 or 0.3.22.
745  Bitcoin / Bitcoin Discussion / Re: Lost Bitcoin when transfering to different wallet! using a valid wallet address! on: August 23, 2011, 05:27:05 PM
It is very unlikely that -rescan helped - all recent versions of bitcoin do rescanning automatically when necessary.

My guess is that you switched to the second wallet before the transaction from the first wallet made its way into the block chain. When switching back, it resubmitted, and the second wallet got it.
746  Bitcoin / Bitcoin Discussion / Re: What does Quantum Computing mean for Bitcoin? on: August 22, 2011, 11:41:49 AM
Assuming QC "suddenly" appears, and ECDSA is instantaneously crackable using Shor's algorithm, and SHA256/RIPEMD160 become vulnerable to Grover's algorithm:
  • Every unspent coin, sent to an address whose pubkey is not yet revealed, is somewhat safe (80 bit security left, instead of 160 bit)
  • The block chain is quite safe (128 bit security left, instead of 256 bit)
  • Transactions to new quantum-computing-based addresses with corresponding keys, are safe
  • ... only unspent coins sent to reused addresses will be trivially claimable by any attacker (a few bits of security left, instead of 128 bit)

747  Bitcoin / Development & Technical Discussion / Re: [Feature Request] Add ability to append "satoshi codes" to transactions. on: August 20, 2011, 03:26:09 PM
This sounds like the wrong way to go for me.

If there is a need for transaction identifiers beyond using a different address per usage, we should move to OP_DROP id's in transaction scripts or something similar, instead of hacking it inside the amount field.
748  Bitcoin / Development & Technical Discussion / Re: [new feature discussion] -fastboot on: August 19, 2011, 02:21:24 PM
-rescan does not revalidate the block chain. It only synchronizes the block chain with the wallet, adding missing transactions to it.

And indeed, most of the time is spent validating the block chain, not downloading. Before 0.3.24, larger blocks often caused disconnects when sending because of an anti-spam measure. That is/was also a cause of delay when starting up, but is slowly improving, as more nodes (and thus potential download partners) upgrade to 0.3.24.

That said, a -fastboot argument that takes a URL or filename to import a blockchain from may be useful in certain situations.
749  Bitcoin / Development & Technical Discussion / Re: Password-protected private key export format on: August 12, 2011, 01:51:15 PM
Right, of course. I just generalized things a bit.

If you're talking about private keys, the distiction remains: either you want to export/import what is in an already encrypted wallet (useful for backup), or you want to do encryption separately. The intent here seems to be the second case, which is fine. It just means you'll need to both the wallet passphrase and the key password ready if you want to import.

Also, considering the used version byte, could you follow this thread? I'd say encrypted privkeys form a new data class.
750  Bitcoin / Development & Technical Discussion / Re: Password-protected private key export format on: August 12, 2011, 11:36:38 AM
I'm not sure what your use case is here. Encrypted dumps of the wallet are obviously useful, but I think they come in two categories:

1) combined with encrypted wallet, just a dump of the encrypted keys therein. This would allow you to export and import dumps without providing a password. I believe this is the safest option, but it would be inherently implementation-specific (the encryption inside bitcoin, as planned for 0.4.0, uses EVP-SHA512 keys derived from a password, used to encrypt a 256-bit master key using AES256-CBC, the wallet keys themselves are encrypted using this master key using AES256-CBC, with the hash of their pubkey as IV).

2) a portable format for exchanging wallets (hopefully between several applications). if the encryption is independent from that of the wallet storage itself, that means exporting requires knowledge of the wallet passphrase + another key to encrypt the dump with. Although there is definitely merit in doing this inside bitcoin itself, i don't think there is anything better than doing a normal wallet dump + GPG/OpenSSL/... encrypting it.
751  Bitcoin / Development & Technical Discussion / Re: Double-spending technical question on: August 05, 2011, 12:41:10 PM
So, why can't the client see that the transaction is invalid and remove it from the list (or tell the user it's invalid)?   After all, the fact that TxOuts have been used is easily verifiable. 

Say, once a day, the client will scan the block chain for invalidating information about all "0/Unconfirmed" transactions in the wallet.  If there are Tx's that use the outputs, that Tx can never be valid again and the user should be given some indication as such.  Even if the Tx is technically still valid, it might be worth giving the user some feedback that it's still valid, just not handled yet.

It is possible - i implemented a proof of concept for this some months ago (seemy rejectedtx branch on github, pull 195). It marks wallet transactions which depend on inputs spent by other transactions that are in the blockchain as inactive.

It takes more time to get it in a mergable condition though...
752  Bitcoin / Development & Technical Discussion / Re: Extending the Alert messages in the protocol on: July 25, 2011, 01:57:31 PM
There is no need to put these in the block chain.

As the exchange is inherently centralized, you lose nothing by publishing the exchange rate data through http or whatever out-of-p2p protocol, possibly mirrored by those who find it interesting enough, if you care about availability.

The data itself can still be signed by a private key held by MtGox, whose address is publically known.
753  Bitcoin / Development & Technical Discussion / Re: Why can't the change be returned to itself? on: July 24, 2011, 07:12:41 PM
If it were to reuse addresses for change, it would be trivial to find out which of both outputs is change and which is payment.

And a new reserve address is generated each time one is used.
754  Bitcoin / Development & Technical Discussion / Re: [PULL] IPv6 support on: July 24, 2011, 04:33:24 PM
Quote
The rule that no two connections to addresses within the same /16 should be attempted, was generalized by defining address groups:
IPv4 addresses are grouped in /16 blocks
IPv6 addresses are grouped in /32 blocks
that just sucks, sorry. i can see why, but it still sucks.
It's far from optimal, but we need some measure to prevent sybil attacks. The problem is the diversity of the IPv6 network... in some ranges the user-specific part is below /48, in others it is below /16.

Quote
Quote
A local IPv6 address is used instead of an IPv4 one if no routable IPv4 address is available. In this case, it is not advertized through IRC (obsolete).
how the hell are nodes going to find each other then? just asking, im trying to make an alternative client.
the way im finding nodes now are connecting to the official client at 127.0.0.1:8333 , and send a getaddr.

Such nodes will still get IPv4 nodes from IRC, and connect to those. It will also advertize its own IPv6 address on the network, which will hopefully propagate that address (current clients don't). Eventually, its address will hopefully end up in DNS seeds, where it can be found by all IPv6-capable nodes.
755  Bitcoin / Development & Technical Discussion / Re: Choosing a lower block reward? on: July 24, 2011, 03:47:09 PM
maby he wants to price to go up, in which case generating only 10coins for a while would really move it up, but i do not think that a client would accept said block.
That's a reason for wanting the whole world to decrease their mining income, but those who do will only be screwing themselves.
756  Bitcoin / Development & Technical Discussion / Re: Choosing a lower block reward? on: July 24, 2011, 03:45:19 PM
I was wondering today, can a miner choose to take a lower block reward?  The current block reward is 50 bitcoins. Could  a miner, for whatever reason, choose to give himself some number lower than 50 bitcoins, or would that block be rejected by the network?
Yes, that is possible, and the block will be accepted.

Quote
How would that affect the total number of bitcoins? Would those coins just be lost forever, and the total number of generated coins be lowered by that amount, or would those coins be available for a future miner to claim?
They're lost forever.

Quote
Is there any situation where a miner would want to generate a number of coins less than the current block reward?
No.
757  Bitcoin / Development & Technical Discussion / [PULL] IPv6 support on: July 24, 2011, 03:18:29 PM
See https://github.com/bitcoin/bitcoin/pull/427

General changes (even when IPv6 support is not compiled in):
  • Valid, routable IPv6 addresses are stored and forwarded
  • Name lookups are done using the general getaddrinfo() call
  • The detection system for the local address is improved. (addresses are classified according to their 'reachability', and the most reachable local address encountered is used).
  • The rule that no two connections to addresses within the same /16 should be attempted, was generalized by defining address groups:
    • IPv4 addresses are grouped in /16 blocks
    • IPv6 addresses are grouped in /32 blocks
    • Tunneled IPv6 addresses use the encapsulated IPv4 address (teredo, 6to4, SIIT, well-known prefix)
  • Hostnames can be given using the "[host]:port" format.
  • Support for the "checkorder" message was removed (obsolete, and not worth porting)

Behaviour changes when IPv6 support is enabled:
  • DNS lookups also return IPv6 matches
  • The listening socket is bound to the IPv6 ANY address (::/128) instead of the IPv4 ANY address (0.0.0.0)
  • Connections to non-IPv4 addresses are attempted, using IPv6 sockets (connections to IPv4 addresses still use IPv4 sockets)
  • A local IPv6 address is used instead of an IPv4 one if no routable IPv4 address is available. In this case, it is not advertized through IRC (obsolete).

For internal changes, see the commit message.
758  Bitcoin / Wallet software / Re: I need a line of C code on: July 24, 2011, 02:53:46 PM
Maybe you could follow this idea: http://forum.bitcoin.org/index.php?topic=8773.0

In short: allow anyone to publish an time-dependent exchange rate to another currency through https, and map changes in the exchange rate to virtual "interest" transactions in the client view.
759  Bitcoin / Development & Technical Discussion / Re: Bitcoin client rounding up all TX fees to .01! on: July 24, 2011, 02:46:47 PM
I believed the bug reported here was already fixed, but this thread made me suspicious.

It seems it was indeed fixed here, but lost in a code reorganization somewhat later (here).

My apologies to those who have lost coins - the issue will be fixed in the next release.
760  Bitcoin / Development & Technical Discussion / Re: [PULL] private key and wallet export/import on: July 19, 2011, 02:42:15 PM
Nice! much better than what I tried to do Tongue

I'm just having a 'little' problem with importing keys; the import fails, and even if I didn't remove the key, it is not listed anymore; but it seems to be there somehow...

It seems there was a bug: keys were not removed from disk, so re-adding them failed. This should be fixed now - could you test again?

Quote
Behaves the same no matter if I removed the key or not; AFAIS it shouldn't be in getaccountaddress if I did, and should be in getaddressesbyaccount if i didn't.

Am I understanding or doing something wrong here?

Well, removing addresses from accounts is just not supported yet. It may cause inccorrect account balances, but not invalid total balances Smiley
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 42 43 44 45 46 47 48 49 50 51 52 53 54 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!