研究了一下分布式随机数
drand能提供timelock 保证文件只能在未来解密 https://github.com/drand/tlock
这里有类似的C/WASM/TypeScript/Python实现 不确定和drand的go实现是否兼容 https://github.com/ideal-lab5/timelock
发现drand已经支持了evmnet这个beacon类型 用evm早已支持的bn254替代quicknet用的BLS12-381
对应的项目就搜到anyrand 人家已经封装好了 https://docs.anyrand.com/using-anyrand/quickstart 不使用它的合约也能自己部署 https://docs.anyrand.com/diy/quickstart
但人家的合约也没啥人来使用 手动验证了一下最近的base交易 68天之前了 https://basescan.org/tx/0x7198766ad10d12a8ccf8c6b5c933a02fa57e2c5ec92edf12e35323d50d5f3732 这里round=12376433 传入的signature确实和 api查询的signature一致 https://api2.drand.sh/v2/beacons/evmnet/rounds/12376433 (拆分成两个uint256)
使用这个合约的是这个FairyRaffle项目 https://base.fairyraffles.com/ 给定名单列表 公平地选出谁中奖
drand官方blog提到BLS12-381也已经有了支持 已经能在L1上验证了 https://docs.drand.love/blog/2025/08/26/verifying-bls12-on-ethereum 看了一下在0.2gwei下验证一个签名需要0.08u的ETH gas https://etherscan.io/tx/0x3a57bd5d5e0389d03b08704b51882bcc45435808e1731a7899dee5cf2b707b3d
让ai写了个测试代码(gemini-3-pro 烧了$0.55) 验证哪些网络已经支持这个BLS12-381的0xf预编译合约(也就是 https://eips.ethereum.org/EIPS/eip-2537 )
这些已经支持:base arb op base bsc polygon katana mantle ink monad cronos bera
不支持的: scroll avax
drand能提供timelock 保证文件只能在未来解密 https://github.com/drand/tlock
这里有类似的C/WASM/TypeScript/Python实现 不确定和drand的go实现是否兼容 https://github.com/ideal-lab5/timelock
发现drand已经支持了evmnet这个beacon类型 用evm早已支持的bn254替代quicknet用的BLS12-381
对应的项目就搜到anyrand 人家已经封装好了 https://docs.anyrand.com/using-anyrand/quickstart 不使用它的合约也能自己部署 https://docs.anyrand.com/diy/quickstart
但人家的合约也没啥人来使用 手动验证了一下最近的base交易 68天之前了 https://basescan.org/tx/0x7198766ad10d12a8ccf8c6b5c933a02fa57e2c5ec92edf12e35323d50d5f3732 这里round=12376433 传入的signature确实和 api查询的signature一致 https://api2.drand.sh/v2/beacons/evmnet/rounds/12376433 (拆分成两个uint256)
使用这个合约的是这个FairyRaffle项目 https://base.fairyraffles.com/ 给定名单列表 公平地选出谁中奖
drand官方blog提到BLS12-381也已经有了支持 已经能在L1上验证了 https://docs.drand.love/blog/2025/08/26/verifying-bls12-on-ethereum 看了一下在0.2gwei下验证一个签名需要0.08u的ETH gas https://etherscan.io/tx/0x3a57bd5d5e0389d03b08704b51882bcc45435808e1731a7899dee5cf2b707b3d
让ai写了个测试代码(gemini-3-pro 烧了$0.55) 验证哪些网络已经支持这个BLS12-381的0xf预编译合约(也就是 https://eips.ethereum.org/EIPS/eip-2537 )
这些已经支持:base arb op base bsc polygon katana mantle ink monad cronos bera
不支持的: scroll avax