5 ms·
> there's a 20% chance that it came from A_1, 20% chance it came from A_2, ... You can't do this[1], as the blockchain does its best to be perfectly determinis
by dvt 5y ago
> there's a 20% chance that it came from A_1, 20% chance it came from A_2, ...
You can't do this[1], as the blockchain does its best to be perfectly deterministic. Best you can do is get an oracle to get you a random seed (which you'll see publicly in the oracle token), so you'll know exactly "what went where."
[1] https://blog.chain.link/random-number-generation-solidity/ https://blog.chain.link/random-number-generation-solidity/
- drdeca 5y agoIs there actually a “which one it came from”? Doesn’t it just need to require that the sum of the inputs is equal to the sum of the outputs?
- 3np 5y agoExplain to me why there would need to be a smart contract with an unpredictable source of randomness for this to work. Coinjoins are running well on Bitcoin, mind you. The transaction chains are generally constructed off-chain. For Ethereum you can do fancier things with zk constructs, like Aztec and Tornado Cash.