This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1, user-scalable=0"> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
img { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// thoughts on how this might work, not tested | |
contract SimplePublicLedgerConcept { | |
struct Update { | |
string field; | |
string newValue; | |
string oldValue; | |
uint timeUpdated; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Experiment { | |
mapping (bytes32 => string) keyValueStore; | |
string single; | |
function setKeyValue(string key, string value){ | |
keyValueStore[sha3(key)] = value; | |
} | |
function updateSingleValue(string value){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
please answer this security question whats my name | |
my first half is what it is my second half is half of what made it | |
AGMS x2 | |
BHNT x3 | |
CIOUV | |
EKQXZ | |
FLRY | |
tetragon: false | |
stars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<!-- | |
get web3.js from here: https://raw.githubusercontent.com/ethereum/web3.js/master/dist/web3.js | |
and put it in the same directory as this. GitHub blocks using it directly. | |
--> | |
<script src='web3.js'></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<style> | |
body { | |
background-color: #EEF; | |
margin: 4em; | |
max-width: 64em; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use account addresses as signing keys | |
// include dates with signatures | |
// automatically handle and enforce key expirations once declared | |
contract DigitalSignatureManager { | |
// given a cryptographic hash of a document, store who has signed it and when | |
mapping (bytes32 => mapping (address => uint)) public datedSignatures; | |
// whether a signing key has been revoked and when, 0 for unrevoked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nonce": "0xdeadbeefdeadbeef", | |
"timestamp": "0x0", | |
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"extraData": "0x0", | |
"gasLimit": "0x8000000", | |
"difficulty": "0x400", | |
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"coinbase": "0x3333333333333333333333333333333333333333", | |
"alloc": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* added to blankslate.io using stylebot on chrome */ | |
html, button, input, select, textarea { | |
background-color: #000; | |
color: #DDD; | |
} | |
.status-bar { | |
background-color: #000; | |
color: #464646; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
draft | |
would benefit from getters for all variables in production version | |
*/ | |
contract PublishingListRecord { | |
struct Post { | |
address poster; | |
string content; |
OlderNewer