Bitcoin Beacon
An implementation of the paper, On Bitcoin as a public randomness source by Joseph Bonneau, Jeremy Clark, and Steven Goldfeder.
An implementation of the paper, On Bitcoin as a public randomness source by Joseph Bonneau, Jeremy Clark, and Steven Goldfeder.
How are the random bits computed? By applying an entropy extraction function to the bitwise $OR$ of the block header and the hash of the block header: $$Beacon(t) = Ext_k(B_t||H(B_t))$$
There is only one API route: https://charlesjlee.github.io/bitcoin-beacon/api/v1/random.json and it returns data formatted like this: { "block_hash": "0000000000000000000ae92414a5d908254927edd7663cd1c52ddd66d503a024", "timestamp": "2020-09-10 15:10:47", "random_binary": "01101111100011101100110111111110", "random_int": 1871629822, "block": 647617 }