Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [random]

The tag has no usage guidance.

1
vote
1answer
37 views

Known cases of miners withholding blocks when used as randomness?

There are some applications that use the blockhash as a source of randomness, often with a payout similar to a lottery. I've heard of attacks where it would be more profitable for a miner to withhold ...
2
votes
1answer
90 views

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 ...
4
votes
1answer
111 views

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?
1
vote
1answer
76 views

Where does the entropy of BitcoinJS' makeRandom() come from?

The library BitcoinJS (https://github.com/bitcoinjs) has a method called makeRandom(). Where does its entropy (randomness) come from? Is it as secure as the method from http://bitaddress.org/ (moving ...
1
vote
1answer
292 views

How a stakeholder is chosen randomly in proof-of-stake?

In PoS a group of stakeholders is selected randomly. Now, the question is if stakeholder_1 owns more coins than stakeholder_2, then he has more chance to be selected as a validator in comparison to ...
1
vote
1answer
489 views

Random election proof of stake

There are currently many cryptocurrencies based on PoS (Proof of Stake). All these PoS algorithms differ from each other. Some or maybe all of them (I don't know) implement some kind of random ...
-1
votes
1answer
118 views

bitcoin random key

$blockchain_receive_root = "https://api.blockchain.info/"; $mysite_root = "mysite url"; $secret = "CHANGE_TO_RANDOM_SECRET"; $my_xpub = "CHANGE_TO_XPUB_KEY"; $my_api_key = "CHANGE_TO_API_KEY"; I have ...
1
vote
0answers
38 views

Random generation of elliptic curve points: is there a preferred approach?

While most practical applications are concerned with the random generation of private keys, anyone who wishes to write unit-testing code on the secp256k1 elliptic curve group may wish to have the ...
2
votes
2answers
398 views

Is Bitcoin mining chance based?

This answer says that Bitcoin is not chance based, may I know how it is deterministic and does not have any associated probability of mining a coin?
3
votes
2answers
463 views

How safe is bitcoin with regard to a random address generation attack? [duplicate]

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(...
3
votes
3answers
2k views

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% ...
1
vote
1answer
141 views

Is it correct that more than 160 bits of input data for producing a private key are superfluous?

If this is true, when I make a 64 character hexadecimal private key I need only provide randomness for the first 40 characters (40 x 4 bits per character = 160). The remaining 24 characters can be ...
2
votes
2answers
432 views

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?
1
vote
0answers
77 views

Non LuckyCoin descendant alt-coins with fair “lucky blocks”?

Dogecoin just dropped the "lucky block" stuff after it was found out the "luckiness" wasn't entirely random - multiminers were waiting for the lucky blocks to appear and dropping their hashing power ...
1
vote
1answer
132 views

How can a Ripple contract use random values and reach consensus?

There an interesting page about contracts on the Ripple Wiki. My limited understanding of contracts is that like other transactions in Ripple, it is the consensus across many servers that ensures ...
3
votes
3answers
193 views

How many throws of a dice are necessary to defeat a brute force attack?

At bitaddress.org I have decided to use "Brain Wallet" and create my own physical randomness using dice. (I understand that dice are more effective than entering dozens of random keys on the keyboard.)...
0
votes
2answers
588 views

Are pseudo-random number generation algorithms good enough to cover all possible Bitcoin addresses?

Part of why Bitcoin works is that it's completely unlikely for someone to end up with the same Bitcoin address. But since Bitcoin address generation is based on pseudo-random generation it raises the ...
2
votes
0answers
619 views

How to determine how many coins have been mined regardless of block count in main.cpp

Been working my way trough the main.cpp trying to see where this value is grabbed if at all. I need a way to check how many coins have been mined regardless of block count. For example if every ...
4
votes
3answers
157 views

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 ...
4
votes
1answer
467 views

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 ...
5
votes
1answer
2k views

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 ...
6
votes
1answer
571 views

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 ...
3
votes
2answers
1k views

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) ...
8
votes
1answer
2k views

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?