Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Matthews Lab
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Permissioned resource coins
(section)
Page
Discussion
British English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Generating an initial white list === To setup the resource coin, one must generate an initial list of hosts who will provide storage space on the network. These hosts, called โfarmersโ will consist of individuals who have verified identities via Civic and who have deposited a certain amount of resource coins to use as collateral. This helps to prevent wealthy people from compromising the system and improves decentralization, but any other algorithm can also be used [insert your favorite proof-of-stake algorithm here] to generate the initial list. <pre>bonds = {} farmers = [ {"pub": "alice", "gb": 10}, {"pub": "bob", "gb": 10}, {"pub": "eve", "gb": 10}, {"pub": "malory", "gb": 10} ] # Todo: allocate this to a pending pool and # when pool is large enough -- shuffle it randomly # before adding to farmers to prevent Google attacks def add_new_farmer(pub, gb): if bonds[pub] < 100: return info = { "pub": pub, "gb": gb } farmers.append(info)</pre> The registration algorithm can be as simple or as complex as needed. Here, the code is checking to see that a new farmer has made a large enough collateral deposit to impose higher costs on Sybil attacks. A more complicated function would allow farmers to increase the amount of storage space they can advertise based on reputation and other factors. <span id="allocating-storage-space"></span>
Summary:
Please note that all contributions to Matthews Lab may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Matthews Lab:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)