- 1.1. "the probability of it being requested" - what's "it"? Should probably say "a given chunk".
- 1.2.1 "discreet" should be "discrete".
- 1.2.3 "Unfortunately, barring basic verification, no guarantees can be gained from the raw transaction." - what guarantees are missing?
- 1.2.3 "Receiver may only keep" should be "The receiver may keep only".
- 1.2.3 Doesn't the chequebook contract suffer from the same nonce-order issue as regular payments?
- 2.3 "First we show how [to] delegate"
- 2.3 "this yields a potential256푥equivalent replicas the owner can upload" - doesn't it only yield 256 replicas, since any chunks with the same nonce will be stored identically?
- 2.3.1 "Here is a schematic: (Figure 2.3.1)" - there's no figure.
- 2.4 Steps 1-2 appear to read the whole file, so what does 3. repeat? In general, this pseudocode is difficult to understand as currently formulated.
- 2.4 "Overcompensating, we could say that there should always be the same number of paritychunks (eg. 28) even when there are
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
from collections import defaultdict | |
words = set("understandings|understanding|conversations|disappearing|informations|grandmothers|grandfathers|questionings|conversation|information|approaching|understands|immediately|positioning|questioning|grandmother|travellings|questioners|recognizing|recognizers|televisions|remembering|rememberers|expressions|discovering|disappeared|interesting|grandfather|straightest|controllers|controlling|considering|remembered|cigarettes|companying|completely|spreadings|considered|continuing|controlled|stationing|controller|straighter|stretching|businesses|somebodies|soldiering|countering|darknesses|situations|directions|disappears|younglings|suggesting|afternoons|breathings|distancing|screenings|schoolings|especially|everything|everywhere|explaining|explainers|expression|branchings|revealings|repeatings|surprising|rememberer|somewheres|television|themselves|recognizer|recognizes|recognized|belongings|finishings|travelling|quest |
This file contains hidden or 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
import argparse | |
import csv | |
import gzip | |
import heapq | |
import itertools | |
import logging | |
logging.basicConfig(level=logging.DEBUG) |
This file contains hidden or 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 CopyTest { | |
function bytesToBytes32(bytes data) returns (bytes32 out) { | |
assembly { | |
out := mload(add(data, 32)) | |
} | |
} | |
function bytes32ToBytes(bytes32 data, uint8 length) returns (bytes out) { | |
out = new bytes(length); | |
assembly { |
This file contains hidden or 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 Test { | |
uint i; | |
function increment() returns (uint) { | |
i += 1; | |
return i; | |
} | |
} |
This file contains hidden or 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 Test { | |
uint public i; | |
function increment() { | |
i += 1; | |
} | |
} |
This file contains hidden or 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
library StringTools { | |
struct Slice { | |
uint _ptr; | |
uint _len; | |
} | |
function memcpy(Slice dest, Slice src) private { | |
var len = src._len; | |
var destPtr = dest._ptr; | |
var srcPtr = src._ptr; |
This file contains hidden or 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
// Returns a slice containing the entire string. | |
function slice(string self) returns (Slice); | |
// Returns a slice containing the requested byte range of the string. | |
function slice(string self, int start, int end) returns (Slice); | |
// Returns a new slice pointing at the same underlying string | |
function slice(Slice self) returns (Slice); | |
// Returns a slice containing the requested byte range of the parent slice. |
This file contains hidden or 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 Test{ | |
function test(string input) { | |
Slice remainder = input.slice(); | |
while(!remainder.empty()) { | |
Slice first = remainder.copy(); | |
remainder = remainder.find("."); | |
first = first.until(remainder); | |
// Do something with first | |
remainder = remainder.advanceBy("."); // or something | |
} |
This file contains hidden or 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
Compressed public key: 03495f43cf0b672ca09e29fe028e826dc5ac019d22edb03ed958d59ffaefd63893 | |
Candidate address: C94E05C8A3D016AAE330D81C1CE12FB9808EFFB5 |