Questions tagged [random]
40 questions
9
votes
1 answer
How can a wager with SatoshiDICE be proven to be fair?
What steps will let a person manually verify that the DICE roll was fair?
Stephen Gornick
- 26,990
- 12
- 67
- 141
8
votes
1 answer
Are transaction hashes random?
Why does satoshidice have to re-hash the transaction details in order to determine your "lucky" number?
Are there no publicly viewable randomized numbers or hashes that are impossible for the sender to duplicate without broadcasting the transaction?
user3145
- 867
- 1
- 8
- 17
8
votes
1 answer
Why doesn't Bitcoin Core use auxiliary randomness when performing Schnorr signatures?
BIP340 recommends using auxiliary randomness in generation of the Schnorr signature nonce, as follows:
Using unpredictable randomness additionally increases protection against other side-channel attacks, and is recommended whenever…
Matthew Leon
- 81
- 4
6
votes
2 answers
How much entropy is lost alphabetising your mnemonics?
Yes I know this is a horrible idea and not BIP39 compliant, but please help satisfy my curiosity with this "thought experiment" and applied maths exercise.
Two questions, one for 12 words, the other for 24.
Assuming "perfectly random" entropy to…
HansBKK
- 405
- 1
- 10
5
votes
2 answers
Strange LockTime values in Electrum transactions?
Electrum includes a locktime in all transactions by default.
Usually the value is equal to the current block height, eg 592918, however it sometimes drops perhaps 20 or so blocks.
What is going on here?
Jonathan Cross
- 1,410
- 10
- 30
5
votes
1 answer
Why do transaction/blockchain based gambling sites use such complicated methods for proving fairness?
Doesn't the block hash or the transaction id provide enough entropy
(for example, by using block_hash % 37 to generate a random number between 0 and 36)?
Block Chain Roulette determines the lucky number as a function of the hash of newest block in…
nivs
- 647
- 4
- 13
4
votes
1 answer
How does hyperledger fabric handle random number generation?
Given that one can write chaincode in JavaScript or Go and freely call random methods provided by the language libraries, how does the network handle the randomness?
Shocky2
- 141
- 3
4
votes
1 answer
C secp256k1 : what is the purpose of secp256k1_context_randomize?
In the course of studying the secp256k1 library API, I came acrosssecp256k1_context_randomize which seems similar to providing a seed to a pseudo-random generator. At the same time, the file secp256k1.h seemingly does not offer any functionality for…
Sven Williamson
- 1,524
- 10
- 23
4
votes
2 answers
How safe is bitcoin with regard to a random address generation attack?
Imagine an attacker implementing something like the following pseudocode on the fastest ASIC farm money can buy:
attack(blockchain, my_address)
addresses = generate_tree_of_all_nonempty_addresses(blockchain)
while true:
private_key =…
Will
- 337
- 2
- 10
4
votes
3 answers
Are generated public/private keypair the most random possible?
The number of possible Bitcoin private/public keypair is very strong (2^160 which is 1,461501637×10⁴⁸).
However, if the random generator is not good enough, only a subset of all that "space" could be used which would considerably break the security…
paulgreg
- 213
- 2
- 8
4
votes
1 answer
Where is the bitcoin automatic address generation?
I have head of the automatic bitcoin address generation feature for every transaction. I have done multiple transaction, but I still have the same addresses (I have two addresses). I would like to enable the automatic address generation feature.…
poiuytrez
- 223
- 1
- 2
- 3
3
votes
1 answer
What is so special about chacha20 stream cipher along with poly1305 for message authentication codes?
I am currently trying to dissect the low level cryptography protocols of the lightning network and I realize that in many places chacha20 is being used. I tried reading about it in the Wikipedia Article there it says:
This gives Salsa20 and ChaCha…
Rene Pickhardt
- 11,670
- 8
- 35
3
votes
3 answers
Need a random seed for vanitygen; where can I obtain one?
Vanitygen has the option for a file to contain random numbers as an alternative to the built-in random number generator.
What is the correct way to generate this file on Windows, OSX? (and Linux)
What is the range of each number (upper and lower…
makerofthings7
- 12,656
- 11
- 60
- 129
3
votes
3 answers
Random numbers using blockchain
How are the block hashes generated?
Are they trully 100% random (generated by hardware) or is it pseudo-random (generated by software)?
Can i rely on it or any other blockchain data to make a 100% trustable raffle?
Regards,
Egidi
- 237
- 4
- 13
3
votes
2 answers
What kind of random numbers source does getnewaddress in Bitcoin Core API (bitcoind) uses?
Is it an internal PRNG? Is it fed from /dev/random or /dev/urandom? How secure is it? If I have a hardware (TRNG) plugged in feeding my /dev/random will this source of entropy get used by bitcoind?
Felipe
- 1,688
- 3
- 19
- 31