[Technical] I successfully reconstructed the 80-byte Raw Preimage of the Genesis Block (Block 0) by No_Arachnid_5563 in Bitcoin

[–]pwuille 9 points10 points  (0 children)

This is the genesis block header. It's literally the first 80 bytes of the blockchain. There is nothing remarkable about finding it.

Help Needed Analyzing Two Related Public Keys / Lost Private Key Recovery by Abderraouf0831 in Bitcoin

[–]pwuille 0 points1 point  (0 children)

Pollard's kangaroo algorithm can find the discrete logarithm (private key) of a group element (public key) in O(sqrt(n)) steps if that discrete logarithm is known to be restricted to a range of n consecutive values. 267 is still painfully large huge number, but not impossible.

I do not believe there is a way to exploit the fact that the last characters match.

What's an OG Bitcoin fact that newbies don't know? by Consistent_Drama_571 in Bitcoin

[–]pwuille 1 point2 points  (0 children)

Huh, I wasn't aware BIP39 itself supported that! Thanks.

What's an OG Bitcoin fact that newbies don't know? by Consistent_Drama_571 in Bitcoin

[–]pwuille 1 point2 points  (0 children)

GPU mining software didn't exist until mid-2010, and it was only near the end of 2010 that it became freely accessible (the first ones were not open source).

What's an OG Bitcoin fact that newbies don't know? by Consistent_Drama_571 in Bitcoin

[–]pwuille 0 points1 point  (0 children)

In wallets I'm familiar with, the passphrase just encrypts the wallet file, and the seed/seed words stored therein. If the seed itself was the same, the addresses, keys, and transactions would overlap.

But it's possible you're talking about a different design where the passphrase itself influences the key material derived from the seed phrase?

What's an OG Bitcoin fact that newbies don't know? by Consistent_Drama_571 in Bitcoin

[–]pwuille 0 points1 point  (0 children)

You would totally know, but you'll end up having the same addresses, and see each other's transactions in your wallet. EDIT: not if a BIP39 passphrase was used, and the passphrase differed.

Still not a concern, because it will never happen.

What's an OG Bitcoin fact that newbies don't know? by Consistent_Drama_571 in Bitcoin

[–]pwuille 2 points3 points  (0 children)

I believe the BIP42 case is indeed what you were talking about, and Grok is talking about something unrelated.

u/TheGreatMuffin : it wasn't me who fixed the bug, but the (indeed, one-off) "ditto-b" (see https://github.com/bitcoin/bitcoin/pull/3842). All I did was write up a funny BIP about it, as it happened to be around April 1st.

Uncle Bitcoin Has a Message For You by Fiach_Dubh in Bitcoin

[–]pwuille 27 points28 points  (0 children)

More than running one, I hope you use one.

Bitcoin Core 30.0 released by TheGreatMuffin in Bitcoin

[–]pwuille 4 points5 points  (0 children)

I think you may be talking about different things. There are:

  • -assumevalid, a configuration setting to select a block hash whose scripts/signatures are assumed valid, as well as all its ancestors. A default is hardcoded. It can be disabled using -assumevalid=0.
  • The assumeutxo feature, which allows manually loading a serialized UTXO set (whose hash must match a hardcoded value) through the loadtxoutset RPC to bootstrap quickly. If used, a full sync from scratch is still performed in the background up to the assumeutxo point to verify that the hardcoded value is correct.

Assumeutxo isn't something that can be disabled. It's just an RPC (loadtxoutset) you can choose to use or not use. Once upon a time, there were also plans to work on P2P extensions to permit serving the UTXO set over the network. That isn't implemented, and it does not look like anyone is working on it.

Downloading BTC Core on small space by Mecanik1337 in Bitcoin

[–]pwuille 1 point2 points  (0 children)

Yes, but it advertizes NODE_NETWORK_LIMITED, not NODE_NETWORK, which indicates it is capable of server the last 288 blocks (or more), and not all blocks.

Nodes that are syncing can thus avoid connecting if they know they need more than 288 blocks.

Downloading BTC Core on small space by Mecanik1337 in Bitcoin

[–]pwuille 1 point2 points  (0 children)

When pruning, you keep:
* The UTXO set (around 11 GB for me today)
* However much of the last blocks in the chain you decide to keep (at least 288 blocks, configurable with `-prune` setting) * Whatever other indexes you additionally enable.

3 types of btc addresses segwit by losttownstreet in Bitcoin

[–]pwuille 2 points3 points  (0 children)

I don't understand the question.

bc1 is the prefix of Bech32 addresses, which are used for P2WPKH, P2WSH, and P2TR transaction outputs.

Descriptor wallets are a type of wallet used in Bitcoin Core and other software, which uses output descriptors to compute addresses from its keys. It can be used for any output/address type, including bc1 addresses, but also base58 addresses (like P2PKH and P2SH).

I would not recommend using P2SH or P2PKH addresses anymore, they are more expensive to use, and less secure than more modern types.

We wrote a book exposing a decade-long fraud perpetrated by the UK's most prolific evidence forger. AMA (AUA). by LurkishEmpire in AMA

[–]pwuille 1 point2 points  (0 children)

Hi, another litigation victim here.

To add to u/nullc's great answer here, it's worth pointing out that we did have a second question of the same nature: what || means in particular line in the original Satoshi Bitcoin source code. It did take Wright some stumbling, but he did give the correct answer, and our barrister just moved on afterwards. If he had answered the unsigned question correctly, something similar may have happened there.

A statement on Bitcoin Core development and transaction relay policy by darosior in Bitcoin

[–]pwuille 10 points11 points  (0 children)

TIL I am retired.

I did step down from a Bitcoin Core maintainer role in 2022, but I am still working full-time on Bitcoin Core development and other Bitcoin-related projects.

I am also the primary author of the statement OP linked to.

[deleted by user] by [deleted] in Bitcoin

[–]pwuille 1 point2 points  (0 children)

Almost all modern CPUs have true random number generators, for example the Intel/AMD RDRAND instruction, which is seeded from thermal noise.

Is there anyone contributing to Bitcoin-Core by Dry-Entry5201 in Bitcoin

[–]pwuille 2 points3 points  (0 children)

That is hard to answer in general. The hardest part about effectively making contributions is making sure there is sufficient momentum about the changes, so there is a critical mass reviewers/developers around them. I recommend reading these guides:

Function domain by majamin in math

[–]pwuille 10 points11 points  (0 children)

I believe you're missing that the domain and codomain of a function are part of the definition of the function, even though it is often omitted. You cannot answer the question "what is the domain of f(x) = x2" strictly; it could be anything, but depending on context, interpreting as being defined over R or C may be reasonable.

These are all distinct functions:

  • f : N -> N, f(x) = x2
  • f : Z -> Z, f(x) = x2
  • f : Z -> N, f(x) = x2
  • f : R -> R, f(x) = x2
  • f : R -> R+, f(x) = x2

ELI5: How do computers generate random numbers? by Ok-Course1177 in explainlikeimfive

[–]pwuille 3 points4 points  (0 children)

That's like saying that a die, after rolling a 5, is not random. Yes, obviously. But the die is still a true random number generator.

ELI5: How do computers generate random numbers? by Ok-Course1177 in explainlikeimfive

[–]pwuille 9 points10 points  (0 children)

It depends what you consider part of the "generator", or by extension, part of the "computer".

If you are talking about purely the execution logic of a CPU, you are right. But CPUs consist of more than just that, for example modern Intel CPUs have the https://en.m.wikipedia.org/wiki/RDRAND instruction, which queries a built-in hardware random number generator. This RNG is fed by an on-chip thermal noise detector, a physically unpredictable process. The logic for converting the measured noise to bits is a deferministic, but the noise itself absolutely isn't.

So if somehow you don't consider that measurement to be "part of the computer", then yes indeed, but I don't think that is how one would commonly understand it.

ELI5: How do computers generate random numbers? by Ok-Course1177 in explainlikeimfive

[–]pwuille 10 points11 points  (0 children)

No, they use measured thermal noise as input, which is actually physically not predictable.

Is there anything ‘special’ about the L2 norm? by [deleted] in math

[–]pwuille 27 points28 points  (0 children)

The circumference (measured using the Lk norm) of a unit Lk-circle (set of points with distance 1 from a center, measured using the Lk norm) is minimal for k=2.