RICE红包抽奖规则公示

路印和DAOSquare联合举办的RICE Party钱包回馈活动已圆满结束,我们现将红包抽奖名单和抽奖规则公布如下。

抽奖名单

以下是完成任务,符合抽奖资格的地址:http://loopring.io/activities/DAOSquare-red-packet/

我们现在公布具体的抽奖规则:

  1. 我们取以太坊主网12491024区块作为初始的抽奖区块号,该区块预计于5月23号晚上8点左右发生;

  2. 将所有剩余参加抽奖的地址按照字典序升序排序,从0开始编号;

  3. 本次中奖者编号为当前抽奖区块号对应的区块哈希值和剩余参加抽奖总人数取模之后的余数;

  4. 移除本次中奖地址;

  5. 抽奖区块号加一;

  6. 重复步骤2-5,一共10次。

抽奖示例

假设9个地址参与抽奖,从中抽取2个,抽奖区块号从以太坊主网12282650区块开始。

(注意!此处九个举例地址为虚拟地址。此处以太坊区块仅用于举例,RICE红包抽奖所用区块为12491024)

9人最终抽奖地址列表:

[
"0x5c357c78ff1c24b35c4d9cd07454e998f4bc3fea",
"0x66dec9b38a4181063444ad66fc32abc6b1146cca",
"0xb8ab4a88ef8be82f1668ddb6236d91fa4feef69b",
"0x3a8bb1d333f402f7ca2da08e74c97de1aa2d6f58",
"0x1147303c30ad75507616c0b5bd3aafce9e74ead7",
"0xcb8a6c0a54f7e60ae48d90ccb63a61b72ea0a0bd",
"0xb7d04e67e89bd42134cf7f3fb0d6b6e6b31d84b3",
"0xc6961b47b8d594c596aff3583c1ddfb3399b069b",
"0xf50dea0e8fa335a90a0c79ec3cf9e0b0c73ca257"
]

那么按照字典序升序排序,并从0开始编号后,9人抽奖地址的排序为:

[
(0, '0x1147303c30ad75507616c0b5bd3aafce9e74ead7')
(1, '0x3a8bb1d333f402f7ca2da08e74c97de1aa2d6f58')
(2, '0x5c357c78ff1c24b35c4d9cd07454e998f4bc3fea')
(3, '0x66dec9b38a4181063444ad66fc32abc6b1146cca')
(4, '0xb7d04e67e89bd42134cf7f3fb0d6b6e6b31d84b3')
(5, '0xb8ab4a88ef8be82f1668ddb6236d91fa4feef69b')
(6, '0xc6961b47b8d594c596aff3583c1ddfb3399b069b')
(7, '0xcb8a6c0a54f7e60ae48d90ccb63a61b72ea0a0bd')
(8, '0xf50dea0e8fa335a90a0c79ec3cf9e0b0c73ca257')
]

假设以太坊12282650区块的哈希值为:

0x34326756290c7a4bf3857927fef8d7d07423fdaa20e74dd0822838fd482e063e。
$\text{0x34326756290c7a4bf3857927fef8d7d07423fdaa20e74dd0822838fd482e063e}\mod9=3$

因此第一位中奖者编号为3,地址为:

0x66dec9b38a4181063444ad66fc32abc6b1146cca

第二轮抽奖名单为:

[
(0, '0x1147303c30ad75507616c0b5bd3aafce9e74ead7')
(1, '0x3a8bb1d333f402f7ca2da08e74c97de1aa2d6f58')
(2, '0x5c357c78ff1c24b35c4d9cd07454e998f4bc3fea')
(3, '0xb7d04e67e89bd42134cf7f3fb0d6b6e6b31d84b3')
(4, '0xb8ab4a88ef8be82f1668ddb6236d91fa4feef69b')
(5, '0xc6961b47b8d594c596aff3583c1ddfb3399b069b')
(6, '0xcb8a6c0a54f7e60ae48d90ccb63a61b72ea0a0bd')
(7, '0xf50dea0e8fa335a90a0c79ec3cf9e0b0c73ca257')
]

假设以太坊12282651区块的哈希值为:

0xf4adaf307383ac80fce717083567d8296f8586bcb4f5d6368cd79b016a40991c。
$\text{0xf4adaf307383ac80fce717083567d8296f8586bcb4f5d6368cd79b016a40991c}\mod8=4$

因此第二位中奖者编号为4,地址为:

0xb8ab4a88ef8be82f1668ddb6236d91fa4feef69b