Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miguel Montes
nucleo
Commits
6c581dfd
Commit
6c581dfd
authored
6 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Constructing installation package
parent
554c7754
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TimeStampAuthority.sol
+0
-26
0 additions, 26 deletions
src/TimeStampAuthority.sol
src/genesis.json
+6
-6
6 additions, 6 deletions
src/genesis.json
with
6 additions
and
32 deletions
src/TimeStampAuthority.sol
deleted
100644 → 0
+
0
−
26
View file @
554c7754
// 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];
}
}
This diff is collapsed.
Click to expand it.
src/genesis.json
+
6
−
6
View file @
6c581dfd
{
{
"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"
:
1
5
,
"epoch"
:
30000
}
"clique"
:
{
"period"
:
5
,
"epoch"
:
30000
}
},
},
"nonce"
:
"0x0000000000000000"
,
"nonce"
:
"0x0000000000000000"
,
"timestamp"
:
"0x5b
293735
"
,
"timestamp"
:
"0x5b
9f9740
"
,
"extraData"
:
"0x426c6f636b636861696e204665646572616c20417267656e74696e61204e4943
2fd693d1204907ae7d97b5d7d2e93ef877ef2c7d
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
,
"extraData"
:
"0x426c6f636b636861696e204665646572616c20417267656e74696e61204e4943
e04c818677a6ddcda2c61a58077c5692733e4844
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
,
"gasLimit"
:
"0x
ffeeddcc
"
,
"difficulty"
:
"0x1"
,
"number"
:
"0x0"
,
"gasUsed"
:
"0x0"
,
"gasLimit"
:
"0x
47e7c4
"
,
"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
"
}
}
}
}
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment