So how would I get a random number on my smart contract then? Is there absolutely no way? Is there a way to call a function from, let's say, JavaScript and have the result be used in the smart contract?

Nov 23, 2017, 6:49 AM
What about getting the last nonce and seeing if meets specific values then issue time-interval payouts?
Nov 23, 2017, 6:53 AM
You can call a contract with a random number as a parameter, but then anyone can call your smart-contract with an arbitrary number they like (not random, but hand-picked instead) — and you won't be able to do anything about it, even figure out what's happening.

RANDAO is your best call, but really — it's not very reliable, and you'd better think twice why you even need random numbers in first place.
Transaction history data comes from miners, and they (especially the large pooled ones) would be able to collude and swing chances in their favor. They don't even need to beat you 100% of time, 51% of winning a coin flip is good enough to become super-rich in a long run.
Theoretically, you don't even need a website to announce your ICO — just throw some Markdown-formatted description to the gist.github.com and you're done.
Everything else is just a question of generating enough trust and successful marketing
You want some more private transaction mechanism — and that's where ZK-SNARKS can indeed help you; but you'd better really spend at least a month reading all the crypto papers about the tech before actually trying to do anything — that's some pretty advanced shit, I warn you
Nov 23, 2017, 11:36 AM
Thanks a lot by the way 😀
👍
Nov 23, 2017, 12:32 PM
Hi Kirill, we are looking for an zkp expert for an ongoing project. Just saw your insights on zk, is there a chance that I can speak with you in DM?
Hi guys, we have an on-going project that needs Solidity/Rust developers who are familiar with Zero Knowledge Proof related development or who are interested in doing research and developer in this sector.

Our Team is distributed in Beijing, Shenzhen, HongKong and USA.

Full Time/Part Time/Remote positions are available. Salary negotiable.

Anyone who's interested please DM me your backgroup/experience. I'll reply next Monday.

Thanks all!
May 14, 2021, 11:02 AM

© 2024 Draquery.com All rights reserved.