8

可不可以用block.difficulty作为随机数

 4 years ago
source link: https://learnblockchain.cn/question/1857
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
可不可以用block.difficulty作为随机数 | 登链社区 | 技术问答

可不可以用block.difficulty作为随机数

在 eth 上,solidity 中说不要用 block.timestamps 和 hash,那还有什么是可靠的呢?

Tiny熊 - 布道者 2021-03-09 16:55

  擅长:智能合约,以太坊

高安全性的方案,目前通常采用分两步提交的方式。

可以参考:
https://learnblockchain.cn/article/2148
https://learnblockchain.cn/article/2154

您需要登录后才可以回答问题,登录 或者 注册

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK