Skip to content

Instantly share code, notes, and snippets.

contract MazeHashFunction {
function generateRandomNumber(uint _treasureMap) view public returns (uint) {
bytes memory randomNumber = new bytes(32);
bytes memory treasureMapInBytes = toBytes(_treasureMap);
uint8 nextByteInTreasureMap = uint8(treasureMapInBytes[31]);
uint8 pointerToNextPosition = nextByteInTreasureMap;
for(uint i = 31; i >0; i--) {
uint nextHashInLabyrinth = uint(blockhash(block.number - 1 - pointerToNextPosition));
255044462D312E350A25BFF7A2FE0A31352030206F626A0A3C3C202F4C696E656172697A65642031202F4C20313630353432202F48205B2038383720313935205D202F4F203139202F45203837313438202F4E2035202F5420313630313834203E3E0A656E646F626A0A202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020200A31362030206F626A0A3C3C202F54797065202F58526566202F4C656E677468203735202F46696C746572202F466C6174654465636F6465202F4465636F64655061726D73203C3C202F436F6C756D6E732035202F507265646963746F72203132203E3E202F57205B203120332031205D202F496E646578205B203135203433205D202F496E666F20333020302052202F526F6F7420313720302052202F53697A65203538202F5072657620313630313835202020202020202020202020202020202F4944205B3C33613032353234343732623837653061383866393664333563346364616662343E3C33613032353234343732623837653061383866393664333563346364616662343E5D203E3E0A73747265616D0A789C63626460E067606260603809229973C0

On the Origin of the Species, Danakil as the Galapagos of Pliocene East Africa

The ancestors of the human species, Australopithecus afarensis, evolved in an open grassland, in a region that was dominated by rainforests much like in Kongo today. How does an open grassland find a niche in a forested region, where it would easily be overgrown by arboreal vegetation?

The coast-line of Danakil as an open grasslands environment

The Danakil block separated from Ethiopia around 6 million years ago[1, 2], and a coast line formed from faulting of the the block, much like how the coast on Crete has formed,[3] on which erosion from wind that came in from the Sea of Afar maintained a largely treeless open grasslands landscape, where the grazing horse speciated[4] as well as the waterbuck[5] and Australopithecus afarensis.[6]

<h1 id="on-the-origin-of-the-species-danakil-as-the-galapagos-of-pliocene-east-africa">On the Origin of the Species Danakil as the Galapagos of Pliocene East Africa</h1>
<p>The ancestors of the human species, <em>Australopithecus afarensis</em>, evolved in an open grassland, in a region that was dominated by rainforests much like in Kongo today. How does an open grassland find a niche in a forested region, where it would easily be overgrown by arboreal vegetation?</p>
<h2 id="the-coast-line-of-danakil-as-an-open-grasslands-environment">The coast-line of Danakil as an open grasslands environment</h2>
<p>The Danakil block separated from Ethiopia around 6 million years ago<sup>[1, 2]</sup>, and a coast line formed from faulting of the the block, much like how the coast on Crete has formed,<sup>[3]</sup> on which erosion from wind that came in from the Sea of Afar maintained a largely treeless open grasslands landscape, where the grazing horse speciated<sup>[4]</sup> as well as the waterbuck<sup>[5]</sup> and <em

On the Origin of the Species, Danakil as the Galapagos of Pliocene East Africa

The ancestors of the human species, Australopithecus afarensis, evolved in an open grassland, in a region that was dominated by rainforests much like in Kongo today. How does an open grassland find a niche in a forested region, where it would easily be overgrown by arboreal vegetation?

The coast-line of Danakil as an open grasslands environment

The Danakil block separated from Ethiopia around 6 million years ago[1, 2], and a coast line formed from faulting of the the block, much like how the coast on Crete has formed,[3] on which erosion from wind that came in from the Sea of Afar maintained a largely treeless open grasslands landscape, where the grazing horse speciated[4] as well as the waterbuck[5] and Australopithecus afarensis.[6]

/*
A vault so that anyone can try out the Teikhos authentication method
proof-of-public-key = f(nextPublicKey) xor sha512(nextPublicKey)
*/
pragma solidity ^0.4.21;
pragma solidity ^0.4.18;
contract SHA3_512 {
function hash(uint64[8]) pure public returns(uint32[16]) {}
}
contract TeikhosBounty {
SHA3_512 public sha3_512 = SHA3_512(0xbD6361cC42fD113ED9A9fdbEDF7eea27b325a222); // Mainnet: 0xbD6361cC42fD113ED9A9fdbEDF7eea27b325a222,
// Rinkeby: 0x2513CF99E051De22cEB6cf5f2EaF0dc4065c8F1f
pragma solidity ^0.4.18;
contract SHA3_512 {
function hash(uint64[8]) pure public returns(uint32[16]) {}
}
contract TeikhosBounty {
SHA3_512 public sha3_512 = SHA3_512(0xbD6361cC42fD113ED9A9fdbEDF7eea27b325a222); // Mainnet: 0xbD6361cC42fD113ED9A9fdbEDF7eea27b325a222,
// Rinkeby: 0x2513CF99E051De22cEB6cf5f2EaF0dc4065c8F1f
pragma solidity ^0.4.17;
contract SHA3_512 {
function SHA3_512() public {}
function keccak_f(uint[25] A) pure internal returns(uint[25]) {
uint[5] memory C;
uint[5] memory D;
//uint x;
//uint y;
pragma solidity ^0.4.17;
contract SHA3_512 {
function SHA3_512() public {}
function keccak_f(uint[25] A) pure internal returns(uint[25]) {
uint[5] memory C;
uint[5] memory D;
//uint x;
//uint y;