Bitcoin Forum
May 10, 2024, 09:59:50 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 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 55 56 57 58 59 60 61 62 63 64 ... 589 »
261  Bitcoin / Bitcoin Technical Support / Re: How to upgrade wallet for taproot support in versions <23? on: April 11, 2022, 02:04:44 AM
That's expected behavior. The feature is not yet implemented as there is a prerequisite refactor that has not been merged yet.
262  Bitcoin / Development & Technical Discussion / Re: Bitcoin supply discrepancy on: March 31, 2022, 10:42:22 PM
Considering most of these things happened in early days
A couple of these losses have occurred relatively recently. This stackexchange post enumerates many of the instances where miners failed to claim their full reward, with the most recent occurring in 2018.
263  Bitcoin / Development & Technical Discussion / Re: Is it possible to convert a part of HASH string into human-readable format? on: January 18, 2022, 05:21:20 PM
The only way to know is to see the software that produced these strings. What software did you use? These are not things that Bitcoin Core produces.
264  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core 22.0 walletrbf=1 in bitcoin.conf is ignored on: January 15, 2022, 09:50:33 PM
Are the transactions you are looking at unconfirmed? It is only "yes" for unconfirmed transactions as only unconfirmed transactions can be replaced.
265  Bitcoin / Bitcoin Technical Support / Re: Do all Native Segwit addresses begin with bc1q? on: December 10, 2021, 04:40:35 PM
Take note it's invalid not because 4th character is "3" since "3" is valid representation of witness version.
That is incorrect. "3" would to correspond witness v17, however BIP 141 states that the highest witness version is 16. This corresponds to OP_0 through OP_16 - there is no 17 or greater.
266  Bitcoin / Bitcoin Technical Support / Re: Do all Native Segwit addresses begin with bc1q? on: December 10, 2021, 01:45:24 PM
No. Segwit v1+ outputs use bech32m (defined in BIP 350), so the correct address to use will be slightly different at the end (the checksum is computed slightly differently in bech32m).

How? It would be really cool if you can transfer this dust and explain in details how you did it!
Because segwit v2+ are not yet defined, these outputs are anyonecanspend outputs. They can be spent in the same way that b10c007c60e14f9d087e0291d4d0c7869697c6681d979c6639dbd960792b4d41 spends segwit v1 inputs prior to taproot's activation.

I don't even know how it was created in the first place Both Bitcoin Core and Electrum don't accept these "addresses".
They only don't accept them because addresses that encode segwit v1+ scripts must use bech32m. Otherwise these addresses would be accepted as BIP 173 states "implementations MUST allow the use of any version" so that older wallets can still send to new segwit versions when they are deployed.
267  Bitcoin / Bitcoin Technical Support / Re: Update Bitcoin Core on: December 06, 2021, 05:39:26 PM
Instead of copying the wallet.dat file, use File > Backup Wallet. It will guarantee the wallet is in a consistent state.

If you are using the RPC, you can use the backupwallet RPC.



Actually, not a low chance it's 50/50 I have experienced before that most of my wallet.dat file is corrupted original file is around 3kb but the copied file is 1kb or 0kb even the Core wallet is not running there is still a high chance that copied wallet.dat can be corrupted.
This is likely because BDB doesn't actually write everything to the wallet.dat file when a write completes. It instead writes it to a log file, which is later compacted into the wallet.dat file periodically. If you copy a wallet.dat file while it is in use, it is likely that you are simply missing the log files and so missing data.

For the most part, this means whenever a rescan (i.e. when you first start Core or open a wallet) is being run or when you are sending (or receiving) a transaction, it is risky to copy the wallet file because it might be in an inconsistent state.
It is always risky to copy because it writes to a log rather than to the data file.

But if Core is using write locks on the wallet file then it would prevent the file from being copied while in such a state in the first place. Maybe achow can clarify if Core write-locks the wallet files.
The wallet.dat file is not directly locked. IIRC there were problems with doing that.



If OP is using a descriptor wallet, then the database is actually a SQLite database and not BDB. There are thus much better guarantees of consistency. SQLite uses a rollback journal instead of a log, so data is only not in the data file for a short period of time (whereas in BDB it can live in the log for a very long time). Even so, if you were to copy the wallet.dat file in the middle of a write, there would still be consistency problems. Again, the best way to backup your wallet is to use the built in backup functionality as it guarantees the database is consistent before making the backup.
268  Bitcoin / Development & Technical Discussion / Re: Enabling Pruning by default is the worst option EVER!!!! on: November 24, 2021, 07:01:14 PM
Pruning is not enabled by default. It will not suddenly enable pruning unless you have done something abnormal. If you run bitcoin-qt and it detects that it is the first time it is being run (the GUI settings file could not be found), then the welcome dialog will default to pruning on. But that can be disabled, you just need to uncheck the box. That is the only time pruning is enabled by default.

Regarding fees, the fee estimator requires being online for some time before it becomes accurate. It needs to observe transactions entering the mempool and subsequently being removed from it as blocks are being found. If you are starting it up and then immediately making a transaction, the estimator won't have any data to estimate fees so it isn't going to be accurate and instead default to the minimum.
269  Bitcoin / Bitcoin Discussion / Re: Bitcoin Core 22.0 Released on: November 16, 2021, 05:23:04 PM

It's odd but it's probably not because of the name change because it appears that the posts are ordered by date but for some reason, the 0.21.2 version was posted on the 26th of October while the newest versions were posted prior to that date.
Ou.. ok maybe it was not about version number. It can be because of certifigate and maybe they did re-sign old ones also.
The order is that way because 0.20.2 and 0.21.2 were released after 22.0. There will still be minor releases for some older versions. These include bug and security fixes.
270  Bitcoin / Development & Technical Discussion / Re: Generating bitcoin public key - question for a school project :) on: November 16, 2021, 02:00:54 AM
Public keys are elliptic curve points, not scalars. You can't just multiple x and y by 2. You need to do elliptic curve point multiplication, which is non-trivial. Wikipedia has an entry on elliptic curve point multiplication, you should start there.
271  Bitcoin / Bitcoin Technical Support / Re: Data structure of blocks showing segwit and taproot integration on: November 15, 2021, 04:01:54 AM
In reading about Taproot and privacy, I don't see how there can be any privacy where the input and output addresses must be explicit for the ledger to be accurate.
So is it ever the case that the address of the an UXTO is unknown, even for a short time? And if not, why is Taproot more private?
No, Taproot does not hide the amounts nor the Taproot output key itself. It is still obviously a Taproot output and the address can be known.

What Taproot does allow for is to hide any scripts. Taproot conveys privacy in that exact scripts do not have to be revealed. Furthermore, Taproot introduces the idea of the cooperative case where all parties involved in a script agree with what to do. In that case, it is possible for a spend of the Taproot output to appear exactly the same as a single key Taproot spend.

A simple example of this is multisigs. Currently, if you have a multisig, when it is spent, it is obviously a multisig. All of the public keys involved can be seen by everyone. The signatures of those that signed call also been publicly viewed. But with Taproot, if a key aggregation scheme like MuSig were used the resulting spend would look just like any single key Taproot spend. This is where privacy is conveyed.
272  Bitcoin / Bitcoin Technical Support / Re: Data structure of blocks showing segwit and taproot integration on: November 12, 2021, 01:53:20 AM
Segwit changed the data structure, taproot does not. This change is specified in BIP 144.
273  Bitcoin / Development & Technical Discussion / Re: Confidential transactions on: October 24, 2021, 12:43:28 AM
Thanks for the clarification of all, but then that leaves data analysis sites (all the sites that draw curves and perform analysis that depends on the BTC value of the UTXO like ratio of spending/creation, or even ratio of dust, with some wrong/misleading results?
Given that Bitcoin doesn't have confidential transactions, no, they aren't wrong.

Although, I don't think the script is stored in the same UTXO set file?
They absolutely are as scripts are the most vital part of a UTXO. The script is what determines who is allowed to spend the UTXO.
274  Bitcoin / Development & Technical Discussion / Re: combining multiple prev_hash and prev_index in tx creation on: October 23, 2021, 09:16:02 PM
A UTXO is identified by the txid of the transaction it was created in, and the 0-based index of its position in the transaction's outputs array. That txid is prev_hash, and the position is prev_index. This applies to all Bitcoin transactions, it is not specific to trezor.
275  Bitcoin / Development & Technical Discussion / Re: Confidential transactions on: October 23, 2021, 09:14:50 PM
I'm wondering:
1-How does the UTXO get stored eventually in the UTXOS set?
Is it in its we could say encrypted or obfuscated form, or what?
I mean no mention about public reveal to all, what if it's dust value for example?
Or how the continuous data analysis sites consider it? in what range of values?
It's stored in basically the same way Bitcoin stores UTXOs - the prevout with the corresponding script and blinded assets and values. This is taken directly from the transactions.

2-What about the fees?
Most of the EQs are based on input= output, how do we put the fee and how will miners know a its value?
-Is this the case I previously encountered in a paper where a UTXO must be dedicated to the fee in each TX?
-Even though, miners should know the fee in advance to decide whether or not to select this TX, so how?
Fees are explicit. They are put in an output with an empty output script. The value of a fee output is not blinded. As fee outputs are special, they don't go into the UTXO set.
276  Bitcoin / Development & Technical Discussion / Re: Yes they can! on: October 23, 2021, 09:11:25 PM
If not then transaction history is not required to validate new transactions.
You don't explain why that would be the case.

If I were a new node, how do I know that the transactions I receive are real transactions? How do I know that the coins being spent are valid? Without a transaction history, how do I know that coins aren't being created out of thin air? There is more to validation than just double spend protection.

But it depends on whether or not it's possible to use the data in a valid transaction message to create a fake double-spend transaction that looks valid.
It is possible. Transaction malleability allows a third party to create a transaction that is technically a conflict (and thus double spend) of the original. The same outputs are being created, and the same inputs are being spent, but the scripts in those inputs are different yet still valid.

Nodes confirm new txs by remaining silent.
Only when a node gets a double spend does it broadcast about it.
The utxo remains spent but both txs are discarded.  So it doesn't matter what order they happened in, the attacker loses.
So what about new nodes? How does the information that those inputs are now unspendable get to nodes that weren't around at the time of the double spend? If you sync and are just told that "these inputs are unspendable", what is the proof that those inputs should be unspendable?
277  Bitcoin / Development & Technical Discussion / Re: Encrypt the PSBT file on: September 27, 2021, 06:00:35 PM
Carrying the PSBT file throught a border and then getting the laptop checked in customs for instance.
Wallet software is way more obvious than a PSBT. And wallet software will contain far more private information than a PSBT.

PSBTs are just base64 strings, you wouldn't know that it is Bitcoin related unless you are looking for it specifically.

And again, you can just encrypt the PSBT with a third party tool. Then it will look like an encrypted file, instead of specifically an encrypted PSBT as adding an encryption standard would make.
278  Bitcoin / Development & Technical Discussion / Re: Encrypt the PSBT file on: September 27, 2021, 04:06:08 PM
Almost all of the information contained in the PSBT is (or will be) public information. UTXOs are public, signatures are public, txids and vouts are public. The only thing that is not public are the BIP 32 derivation paths, and those aren't particularly useful to an attacker.

What "personal information" are you concerned about? What is the attack you are concerned about? If you are transmitting PSBTs over the internet, then you can employ third party tools for encryption, such as PGP. If you are concerned about a man in the middle between local machines, then you are concerned about an attacker who has gained remote access to your machines, in which case you have much bigger problems.
279  Bitcoin / Development & Technical Discussion / Re: What happens when you unlock the wallet? on: September 26, 2021, 11:56:47 PM
When you unlock the wallet, the password is used to decrypt the key actually used to encrypt the private keys. That decryption key is stored in the wallet as vMasterKey. It will remain there in memory (and thus the wallet is unlocked) until CWallet::Lock is called to remove it from memory and thus lock the wallet.

When you use the walletpassphrase RPC, a timer thread will be scheduled to run after the given timeout. That thread will just call CWallet::Lock and lock the wallet.

The GUI doesn't need a timer like the RPC does because it can ask for the passphrase when needed, and lock the wallet when it is done with what it is doing. So it does not have a timeout in the same way the RPC does. Rather each action that needs the wallet to be unlocked for it to succeed will create a WalletModel::UnlockContext object, which in doing so, will spawn the AskPassphraseDialog to get your passphrase. That sets CWallet::vMasterKey thereby unlocking your wallet. The UnlockContext object has a destructor which calls CWallet::Lock so when it is destroyed, the wallet is locked. The object is destroyed when it goes out of scope, i.e. when the action being performed that needed the wallet to be unlocked is completed.
280  Bitcoin / Development & Technical Discussion / Re: sha256 checksums after Bitcoin.org hack on: September 26, 2021, 06:48:01 PM
You should verify the signatures file.

You can also compare these against what every builder in the build process got: https://github.com/bitcoin-core/guix.sigs/tree/main/22.0 (they should all match) and verify the signatures on those SHA256SUMS files too.
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 55 56 57 58 59 60 61 62 63 64 ... 589 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!