Skip to content
Snippets Groups Projects
Commit 6c581dfd authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Constructing installation package

parent 554c7754
No related branches found
No related tags found
No related merge requests found
// 20180718 Robert Martin-Legene <robert@nic.ar>
// Time stamp authority
pragma solidity ^0.4.24;
contract TimeStampAuthority {
// This mapping is almost an "associative array"
mapping (uint256 => uint) private hashstore;
// Stores hashes (256 bit uint) of a document in the mapping
function put( uint256[] hasharray ) public {
uint256 i = hasharray.length;
while (i>0) {
i--;
uint256 h = hasharray[i];
if (hashstore[h] == 0) {
hashstore[h] = block.number;
}
}
}
// Returns the block number in which the hash was first seen
function get( uint256 hash ) public view returns (uint) {
return hashstore[hash];
}
}
{ {
"config": { "config": {
"chainId": 5445, "chainId": 47525974938,
"homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 4, "homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 4,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"clique": { "period": 15, "epoch": 30000 } "clique": { "period": 5, "epoch": 30000 }
}, },
"nonce": "0x0000000000000000", "nonce": "0x0000000000000000",
"timestamp": "0x5b293735", "timestamp": "0x5b9f9740",
"extraData": "0x426c6f636b636861696e204665646572616c20417267656e74696e61204e49432fd693d1204907ae7d97b5d7d2e93ef877ef2c7d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "extraData": "0x426c6f636b636861696e204665646572616c20417267656e74696e61204e4943e04c818677a6ddcda2c61a58077c5692733e48440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0xffeeddcc", "difficulty": "0x1", "number": "0x0", "gasUsed": "0x0", "gasLimit": "0x47e7c4", "difficulty": "0x1", "number": "0x0", "gasUsed": "0x0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"alloc": { "2fd693d1204907ae7d97b5d7d2e93ef877ef2c7d": { "balance": "0x200000000000000000000000000000000000000000000000000000000000000" } } "alloc": { "e04c818677a6ddcda2c61a58077c5692733e4844": { "balance": "0x7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment