Compare commits
137 Commits
semantic-s
...
main
Author | SHA1 | Date |
---|---|---|
Ladd Hoffman | 24c183912a | |
Ladd Hoffman | ad382b5caf | |
Ladd Hoffman | 846eb73cea | |
Ladd Hoffman | 1f3d8a7d1e | |
Ladd Hoffman | 6679b9dedb | |
Ladd Hoffman | 7a8bb0a95e | |
Ladd Hoffman | 4d53f5c70e | |
Ladd Hoffman | 907b99bb65 | |
Ladd Hoffman | 5230f8664b | |
Ladd Hoffman | 9eff884636 | |
Ladd Hoffman | 8d0daf2062 | |
Ladd Hoffman | 72c3bd1663 | |
Ladd Hoffman | ea6e2d4494 | |
Ladd Hoffman | a743a81218 | |
Ladd Hoffman | 07370be4fa | |
Ladd Hoffman | 56132b2fec | |
Ladd Hoffman | f978c20104 | |
Ladd Hoffman | ae5ab09e16 | |
Ladd Hoffman | dd582c4d20 | |
Ladd Hoffman | 77d6698899 | |
Ladd Hoffman | 498b5c106f | |
Ladd Hoffman | 9eb3451451 | |
Ladd Hoffman | 82e026f327 | |
Ladd Hoffman | 1f1f1f0c1d | |
Ladd Hoffman | 8bb188ff13 | |
Ladd Hoffman | 9974712aa9 | |
Ladd Hoffman | a8544dfd39 | |
Ladd Hoffman | 36acc56fa2 | |
Ladd Hoffman | 7e74773242 | |
Ladd Hoffman | e602466800 | |
Ladd Hoffman | 7eddd66385 | |
Ladd Hoffman | 21a0ef6bda | |
Ladd Hoffman | ce4f78aa97 | |
Ladd Hoffman | 81823cd009 | |
Ladd Hoffman | b02efb66ad | |
Ladd Hoffman | 36c827a40f | |
Ladd Hoffman | 92bbab2a5b | |
Ladd Hoffman | d4bdb1c435 | |
Ladd Hoffman | f3037a766d | |
Ladd Hoffman | 5ca884686b | |
Ladd Hoffman | 2ed07b7f5e | |
Ladd Hoffman | 353190fdcd | |
Ladd Hoffman | 0a8b170115 | |
Ladd Hoffman | 5988950857 | |
Ladd Hoffman | 63b43a0f4d | |
Ladd Hoffman | e6a0c22d3f | |
Ladd Hoffman | dddee70365 | |
Ladd Hoffman | b943daf28c | |
Ladd Hoffman | fa7f0620b6 | |
Ladd Hoffman | c4a528283c | |
Ladd Hoffman | 3072dbae28 | |
Ladd Hoffman | aba7cc6870 | |
Ladd Hoffman | 77ae33ce5a | |
Ladd Hoffman | 602ce75871 | |
Ladd Hoffman | a2a1035da8 | |
Ladd Hoffman | 9e5b6a4064 | |
Ladd Hoffman | 6012cb2d1a | |
Ladd Hoffman | 7d89df7a61 | |
Ladd Hoffman | 87f04bd7d3 | |
Ladd Hoffman | 90eded96e5 | |
Ladd Hoffman | 1181aca9d7 | |
Ladd Hoffman | 92cfdaaa63 | |
Ladd Hoffman | fc27cda81d | |
Ladd Hoffman | 4eced65dbf | |
Ladd Hoffman | 50df9efabc | |
Ladd Hoffman | 30ebe04db7 | |
Ladd Hoffman | d136e6ff45 | |
Ladd Hoffman | e63d4b9b21 | |
Ladd Hoffman | f57c38e322 | |
Ladd Hoffman | be71d4f3cd | |
Ladd Hoffman | 3541802d93 | |
Ladd Hoffman | c8ce74cf13 | |
Ladd Hoffman | a48d14905c | |
Ladd Hoffman | 5fc5bbe0b5 | |
Ladd Hoffman | ab63ad1868 | |
Ladd Hoffman | c24952497d | |
Ladd Hoffman | e7ff4254a3 | |
Ladd Hoffman | 3cf24c6fa1 | |
Ladd Hoffman | 721718ac13 | |
Ladd Hoffman | 329af5c640 | |
Ladd Hoffman | 7cda474d20 | |
Ladd Hoffman | 0c98ae2505 | |
Ladd Hoffman | 23070ae381 | |
Ladd Hoffman | e26afa1eb4 | |
Ladd Hoffman | f475742cbf | |
Ladd Hoffman | e20a864738 | |
Ladd Hoffman | 1668ceeda3 | |
Ladd Hoffman | b7280d9946 | |
Ladd Hoffman | 5834f89882 | |
Ladd Hoffman | d1570e7672 | |
Ladd Hoffman | 667a051c13 | |
Ladd Hoffman | 94200b59d4 | |
Ladd Hoffman | d04b280645 | |
Ladd Hoffman | 4c9cee9963 | |
Ladd Hoffman | acda73fff4 | |
Ladd Hoffman | db8a8ca346 | |
Ladd Hoffman | 4789ed7499 | |
Ladd Hoffman | 0671ad7b64 | |
Ladd Hoffman | a0d5611ca4 | |
Ladd Hoffman | 2d48825dae | |
Ladd Hoffman | 9deaf4db07 | |
Ladd Hoffman | 8982ac610f | |
Ladd Hoffman | cd5fce820c | |
Ladd Hoffman | 7a23e94e9d | |
Ladd Hoffman | ea087451ff | |
Ladd Hoffman | 92da97fede | |
Ladd Hoffman | 75bb48a0e5 | |
Ladd Hoffman | ff5edc64ac | |
Ladd Hoffman | 83f9007401 | |
Ladd Hoffman | e777a0ee85 | |
Ladd Hoffman | 6cc1c25b37 | |
Ladd Hoffman | 7c7d01aa91 | |
Ladd Hoffman | 675fd17734 | |
Ladd Hoffman | e4566d1a45 | |
Ladd Hoffman | 1066372371 | |
Ladd Hoffman | b644d6c119 | |
Ladd Hoffman | cfa445471f | |
Ladd Hoffman | 8980885881 | |
Ladd Hoffman | 07b992e572 | |
Ladd Hoffman | e34534675f | |
Ladd Hoffman | f944d19728 | |
Ladd Hoffman | f93aaf7373 | |
Ladd Hoffman | 4c53d2a0f7 | |
Ladd Hoffman | 03af7d4b10 | |
Ladd Hoffman | fc3138adab | |
Ladd Hoffman | 6ad293b5b8 | |
Ladd Hoffman | 59c10f1ac2 | |
Ladd Hoffman | d63a93562f | |
Ladd Hoffman | d6a76441ae | |
Ladd Hoffman | 64a2feeaa8 | |
Ladd Hoffman | e7120f87b1 | |
Ladd Hoffman | a481710cde | |
Ladd Hoffman | 41506fdcd5 | |
Ladd Hoffman | c89ba51dab | |
Ladd Hoffman | c44c70cf03 | |
Ladd Hoffman | beb1a069d7 | |
Ladd Hoffman | 715943ec77 |
|
@ -1,4 +1,4 @@
|
|||
# Science Publishing DAO
|
||||
# DAO Governance Framework
|
||||
|
||||
## Subprojects
|
||||
|
||||
|
|
|
@ -1,101 +0,0 @@
|
|||
participantgroup #lightblue Voting Contract
|
||||
participantgroup Methods
|
||||
boundary "createVote()" as create_vote
|
||||
boundary "voteResults()" as voting_vote_result
|
||||
end
|
||||
participantgroup Data
|
||||
database "Params" as voting_params
|
||||
end
|
||||
end
|
||||
|
||||
participantgroup #lightyellow Vote Contract
|
||||
participantgroup Methods
|
||||
boundary "vote()" as vote
|
||||
end
|
||||
participantgroup Data
|
||||
database "Votes" as votes
|
||||
end
|
||||
end
|
||||
|
||||
participantgroup #pink Forum Contract
|
||||
participantgroup Methods
|
||||
boundary "post()" as post
|
||||
boundary "voteResult()" as forum_vote_result
|
||||
end
|
||||
participantgroup Data
|
||||
database "Params" as forum_params
|
||||
end
|
||||
end
|
||||
|
||||
participantgroup #orange Post\nContract
|
||||
participantgroup Data
|
||||
database "Posts" as posts
|
||||
end
|
||||
end
|
||||
|
||||
participantgroup #lightgreen Operating Accounts
|
||||
participant "Reputation\nNFT" as rep
|
||||
participant "Reviewer" as reviewer
|
||||
participant "Public" as public
|
||||
end
|
||||
|
||||
activate voting_params
|
||||
activate forum_params
|
||||
activate rep
|
||||
|
||||
group Author a post
|
||||
public -> post : post()
|
||||
activate public
|
||||
activate post
|
||||
post<-forum_params:Read param values
|
||||
post -> posts : Create post instance;\nInitialize with current\nparam values
|
||||
activate posts
|
||||
posts->posts:Reference\nother posts
|
||||
deactivate post
|
||||
deactivate public
|
||||
end
|
||||
|
||||
group Initiate a vote
|
||||
reviewer -> create_vote : createVote()
|
||||
activate reviewer
|
||||
activate create_vote
|
||||
create_vote<-voting_params:Read params
|
||||
create_vote -> votes : Create vote instance;\nInitialize with current\nparam values
|
||||
activate votes
|
||||
votes -> posts : Reference a post
|
||||
deactivate create_vote
|
||||
deactivate reviewer
|
||||
end
|
||||
|
||||
group Cast a vote
|
||||
reviewer->vote:vote()
|
||||
activate vote
|
||||
activate reviewer
|
||||
vote<-votes:Read prior votes
|
||||
rep->vote:Read voter reputations
|
||||
vote->vote:Evaluate\nterminating\nconditions
|
||||
end
|
||||
|
||||
alt Voting terminates, according to params
|
||||
alt Voting param change
|
||||
posts->vote:Read post contents
|
||||
vote->voting_vote_result:voteResult()
|
||||
voting_vote_result ->voting_params : Update\nparams
|
||||
end
|
||||
votes->forum_vote_result:voteResult()
|
||||
activate forum_vote_result
|
||||
posts ->forum_vote_result : Read post contents
|
||||
forum_vote_result<-forum_params:Read params
|
||||
alt Forum param change
|
||||
forum_vote_result -> forum_params : Update\nparams
|
||||
end
|
||||
forum_vote_result<-rep:Read authors reputations
|
||||
forum_vote_result->rep:Mint reputation for post / authors / references
|
||||
deactivate forum_vote_result
|
||||
activate rep
|
||||
votes->rep:Mint reputation for vote winners
|
||||
activate rep
|
||||
end
|
||||
vote->votes:Update\nvote\nrecord
|
||||
deactivate vote
|
||||
deactivate reviewer
|
|
@ -1,84 +0,0 @@
|
|||
Forum Network Node
|
||||
---
|
||||
|
||||
The forum is a collection of posts.
|
||||
|
||||
Each post may reference other posts, attributing some reputation to those posts.
|
||||
|
||||
A validation pool may vote to validate forum posts.
|
||||
|
||||
When such a vote passes, the reputation minted at the creation of the post, gets awarded
|
||||
- to the post author
|
||||
- to the voters
|
||||
- recursively to cited posts
|
||||
|
||||
A post's author should be able to choose how much reputation to stake on it.
|
||||
- Work evidence post. expect unanimity, decent sized stake, punish losers.
|
||||
- Upvote on a comment. Low stakes. Constitutes validation of the comment as
|
||||
- carrying an appropriate stake
|
||||
- containing appropriate content
|
||||
- Downvote a comment. Moderate stakes.
|
||||
- Upvote on a post. Moderate stakes. Constitutes validation of the post as being valuable to the DAO.
|
||||
- Downvote on a post. Moderate stakes.
|
||||
|
||||
what if we don't support generic upvotes?
|
||||
instead we would just have posts with weighted citations, and standard validation pool votes on each post.
|
||||
|
||||
It will be important for forum voting to be cheap too, in addition to posting to the forum.
|
||||
So we probably need off-chain voting as well.
|
||||
|
||||
We probably want each client UI to be validating as many posts as possible.
|
||||
We can try to do something clever such as monitor the time the user spends with a given post visible on their screen, and if they don't downvote it within a certain time, we can cast an implicit upvote. This would save a lot of manual activity.
|
||||
|
||||
The DAO can choose to implement additional automated filtering of what to show the user, and could automatically downvote unwanted content in order to earn validation pool rewards, punish bad actors, and decrease visibility of the unwanted content.
|
||||
|
||||
The UI can be configured to highlight incoming, unvalidate posts for the user to review and validate.
|
||||
A user might choose to disable this option, setting the threshold higher, so that they only see validated posts.
|
||||
This is something a user might turn on and off at different times, depending on their present mode of engagement with the forum.
|
||||
I.e., browsing or actively engaged.
|
||||
|
||||
Approving these posts should be a quick operation on the client side.
|
||||
The results of such operations should be propagated among network nodes and to other clients as needed, so that the off-chain system maintains an up-to-date view of the status of each post. Periodically, the resulting changes to reputation balances should be written to the blockchain.
|
||||
|
||||
We should identify all viable opportunities to collect payments from users. These payments will be necessary to fund the on-chain operations of this system.
|
||||
|
||||
Fundamentally we expect payments will be associated with incoming work requests from outside.
|
||||
So a post is made requesting work?
|
||||
Then the worker makes a post presenting the work output for validation.
|
||||
Discussion may occur in the forum regarding the work output.
|
||||
This means associates will make new comment posts descending from the work output.
|
||||
These comments form a body of discussion.
|
||||
Comments may declare their agreement or disagreement with other comments.
|
||||
The validation pool will need to validate the comments.
|
||||
The comments should not mint new reputation if there is no incoming fee.
|
||||
Instead, the commenter must stake some of their own reputation.
|
||||
If the comment is successfully validated, it gains comment reeputation.
|
||||
Then once the parent post is validated, the comment author will get a portion of the reputation minted from the parent post creation.
|
||||
If the comment is not successfully validated one way or the other, the author's stakes will be returned to them.
|
||||
If the comment is invalidated, the author will lose their stakes.
|
||||
|
||||
The validation pool eventually votes on the work output.
|
||||
If the vote passes, awards are distributed among
|
||||
- authors
|
||||
- cited posts, weighted
|
||||
- validated comments, weighted by the comment reputation balances
|
||||
|
||||
A governance post, such as a parameter change or a client software upgrade, will function similarly.
|
||||
The expected fee will be smaller.
|
||||
The reputation awards should be pretty decent.
|
||||
The discussion around these governance posts will be particularly important.
|
||||
|
||||
Posts, including comments and governance posts, can reference prior posts.
|
||||
Suppose a comment references a prior comment from a different thread (different work product parent post).
|
||||
Then if reputation is awarded to the new comment, some of it should be transitively awarded to the referenced comment.
|
||||
In this way, a comment can gain reputation over time, which in turn awards reputation to its authors and cited posts.
|
||||
Thus, the forum is like a living system, where connections with new posts can influence existing posts.
|
||||
|
||||
---
|
||||
|
||||
We want the Network Node to accept reputation-staking actions from the web client (to make it more general, let's call it the user agent).
|
||||
This means the user agent must have a way to prove that the user owns a given reputation token.
|
||||
Ideally this should be done via a zero-knowledge proof, where
|
||||
- the server sends the client something,
|
||||
- the client does something with it and sends a response, and
|
||||
- the server is able to verify based on the client's response that they own the given reputation token.
|
|
@ -1,235 +0,0 @@
|
|||
# Goals
|
||||
- Enable each individual to express their values by taking actions in the system.
|
||||
- Enable a group to arrive at a decision through a process of deliberation.
|
||||
- Reward participants in the deliberation process.
|
||||
- Enable participants to post contributions for review.
|
||||
- Also enable discussion during this review process, a.k.a.
|
||||
Enable participants to post comments on the review and on other comments
|
||||
- Enable participants to submit arbitrary posts that stand alone or that reference other posts
|
||||
- This correctly implies recursion.
|
||||
- Since we don't want loops, we want a DAG (directed acyclic graph).
|
||||
|
||||
# Requirements
|
||||
|
||||
## Use Cases
|
||||
- Outsiders can submit work requests via the Business contract
|
||||
- Includes fees
|
||||
- Incoming request can be reviewed and approved by validators
|
||||
- Adds a post to the forum
|
||||
- Assigns the work request to an associate, via Availability contract
|
||||
- Associate can submit their work results via the Business contract
|
||||
- Adds a post to the forum
|
||||
- Associates can carry out discussions on the forum by adding new posts.
|
||||
- Each post can attribute reputation for or against other posts
|
||||
- Each post should be validated by associates.
|
||||
- Eventually a formal vote should occur, in the context of the Business contract.
|
||||
If the votes passes, reputation should be awarded to the following:
|
||||
- associate who submitted the work
|
||||
- associates who voted in favor of the post
|
||||
- associates whose comments in the discussion earned reputation
|
||||
- Associates can submit new posts to the forum, outside of any existing post or work request
|
||||
- Each post should be validated by associates
|
||||
- These can be referenced by future posts, thereby gaining or losing reputation
|
||||
- Reputation awards are only distributed when posts are later referenced in a fee-generating discussion
|
||||
|
||||
## Storage Requirements
|
||||
- Run-time operational data
|
||||
- Active sessions
|
||||
- Possible cache of on-chain data to expedite look-ups
|
||||
- Subscribe to updates?
|
||||
- Archival data
|
||||
- Forum posts and their contents
|
||||
- This is needed in order to display forum contents to clients,
|
||||
as well as to compute reputation awards when submitting a batch
|
||||
of forum results to the forum validator contract.
|
||||
|
||||
## Messaging Requirements
|
||||
|
||||
# Contracts
|
||||
|
||||
## Validator Contract
|
||||
|
||||
How generic do we want our validator contract to be?
|
||||
|
||||
So far, what I've thought of:
|
||||
- Points to a forum post.
|
||||
- Off-chain computation provides reputation effects arising from the forum attribution DAG.
|
||||
- Network nodes function as voters here, to vote on the result they believe is correct.
|
||||
This decision is expected to be determined by the forum client software.
|
||||
The forum contract must include provision for tracking the forum client post with the highest reputation.
|
||||
A new forum client post would include reputation stake against the previous version, and if
|
||||
Like all governance decisions and perhaps many other kinds of decisions, there should be a period of deliberation where participants may express their opinions.
|
||||
At some point it will transition to a formal vote. This will occur when the off-chain network nodes decide to cast formal votes.
|
||||
|
||||
## Network Node Contract
|
||||
|
||||
- Should require staking reputation to add a new network node
|
||||
- Should require vote by validation pool to add the new network node
|
||||
- Should allow vote by validation pool to remove a network node
|
||||
|
||||
|
||||
# Options for architecture of off-chain forum components.
|
||||
|
||||
## 1
|
||||
|
||||
Use the following components:
|
||||
- Existing storage network
|
||||
- Existing messaging network
|
||||
- New forum network nodes
|
||||
|
||||
Effects of this arrangement:
|
||||
- Pro: Minimize storage and network requirements for the individual network nodes,
|
||||
since they won't need to talk to each other directly.
|
||||
- Pro: Gains benefits of whatever features the chosen storage or messaging systems provide.
|
||||
- Con: Adds infrastructure costs that must be managed.
|
||||
- Con: Adds requirement to implement integration with chosen storage and messaging systems.
|
||||
|
||||
## 2
|
||||
|
||||
Use the following components:
|
||||
- Existing storage network
|
||||
- New messaging network
|
||||
- Network nodes talk to each other directly
|
||||
|
||||
Effects of this arrangement:
|
||||
- Pro: Reduce messaging infrastructure costs by implementing this functionality within our own application.
|
||||
- Nodes can discover each other by reading from the blockchain.
|
||||
- Nodes can vote for/against each other with regard to their stakes as network nodes.
|
||||
Nodes can gossip amongst each other.
|
||||
Nodes MUST be able to verify peer nodes ownership of reputation tokens.
|
||||
Nodes SHOULD periodically re-verify their local view of the network, with the view that may be accessed on-chain.
|
||||
|
||||
Notes:
|
||||
- Since we need our application to be publicly networked anyway, to interact with user agents,
|
||||
it's not asking a huge amount for them to communicate amongst one another.
|
||||
|
||||
## 3
|
||||
|
||||
Use the following components:
|
||||
- New messaging network
|
||||
- New storage network
|
||||
|
||||
Effects of this arrangement:
|
||||
- Pro: Integrity of storage can be policed by reputation staking
|
||||
|
||||
Notes:
|
||||
- We would have to choose a consensus algorithm for our data storage, or adopt an existing self-managed solution
|
||||
|
||||
---
|
||||
|
||||
# Questions
|
||||
|
||||
## How much on-chain?
|
||||
Just hashes? Any full content?
|
||||
|
||||
## What forum storage?
|
||||
IPFS?
|
||||
Filecoin?
|
||||
Arweave?
|
||||
CouchDB?
|
||||
Custom?
|
||||
|
||||
If we use existing/separate networks for storage and/or messaging, how do we police them?
|
||||
If they mess up our data, whose reputation is staked?
|
||||
Perhaps this is implicitly covered by the Validator voting, where off-chain results are compared.
|
||||
We may want to support multiple storage options.
|
||||
No matter where archival storage occurs, stored data can and should be verified using hashes stored on-chain.
|
||||
Nodes should only write to the archive AFTER voting on results.
|
||||
In the worst case, if archived data loses integrity, it will prevent the forum from processing new transactions.
|
||||
If enough network nodes could agree on a strategy to remediate the data, it might be possible to recover somewhat gracefully. This would depend on the nature and extent of the damage.
|
||||
The last resort would be to initialize a new forum and abandon the old one.
|
||||
While this would be disruptive to continuity of operations for the DAO, it would not alter on-chain reputation holdings.
|
||||
|
||||
## What forum messaging?
|
||||
ZeroMQ?
|
||||
RabbitMQ?
|
||||
CouchDB?
|
||||
Custom?
|
||||
|
||||
## What UI?
|
||||
The forum contract should serve the forum network node source code.
|
||||
If we only store a hash, we need a secure mechanism for storing and serving the actual code.
|
||||
If we store the full code on-chain, we would also need to document a process for network node operators to obtain the code.
|
||||
For example, by using existing command-line utilities to interface with the blockchain and download the data.
|
||||
If we store the full code off-chain, we would still need to document the process for network node operators to obtain the code.
|
||||
We would also need to make sure that one network nodes are up and running, they help pin the content to IPFS.
|
||||
|
||||
The forum network node should then serve the UI to users. This can be served as a web application.
|
||||
Network node will send HTML, CSS, and Javascript to a browser client.
|
||||
The browser client must have an extension that allows it to function as a wallet, and it must be able to
|
||||
provide proof to the forum node, of the user's ownership of reputation tokens.
|
||||
|
||||
This can be accomplished as follows:
|
||||
1. Web client prepares a message (probably using Casper Signer browser extension). Message includes:
|
||||
- Public key
|
||||
- Nonce
|
||||
- Signature
|
||||
2. Forum node verifies the signed message.
|
||||
3. Forum node checks on-chain reputation for the given public key.
|
||||
4. Forum node authenticates the client's HTTPS session.
|
||||
|
||||
From there, the forum node should be able to take actions on behalf of the client.
|
||||
Most of these actions will occur initially within the off-chain context.
|
||||
Eventually however, the results of the actions should be encoded in an on-chain validation vote.
|
||||
|
||||
The above step 3, check on-chain reputation for given key, may be prohibitively expensive.
|
||||
Here's a way we might deal with that.
|
||||
When the forum node receives the signature from the client, we can store it along with the data representing other forum activities; we can provisionally accept the offered public key from the client, and use it for the purposes of computing
|
||||
reputation effects from forum activities. It could be verified asynchronously. If it turns out to have an issue, however,
|
||||
then we would have to remediate our results before finalizing.
|
||||
Here's another approach.
|
||||
Each client will need to pay a small fee to register with the forum.
|
||||
This would cover the cost of the on-chain transaction which is needed in order for the forum node to verify the client's reputation.
|
||||
Once verified, the forum will store the client's public key. The client will then be able to authenticate with the off-chain forum network.
|
||||
Certain actions in the forum will involve an associate staking reputation.
|
||||
The plan is for the off-chain network to keep track of these actions,
|
||||
and periodically vote on-chain to enact their results.
|
||||
In order for these reputation stakes to be realized on-chain,
|
||||
the Forum Validator Contract must empowered to apply the resulting reputation effects.
|
||||
Otherwise, the user agent would need to engage directly with the blockchain.
|
||||
|
||||
How shall we fund the forum nodes to deploy the necessary calls to smart contracts?
|
||||
|
||||
Maybe it should be possible to submit a fee in order to fund a given forum node, and
|
||||
thereby to gain some reputation, and thus receive a share of the fees that the DAO earns.
|
||||
This would also suggest the need for a votable parameter to tune the proportion of these rewards.
|
||||
|
||||
## Should network node contract voters consist of network nodes, or voting associates?
|
||||
Network nodes should be resistant to DOS attacks by restricting white-listed peers to the list obtained from the network node contract on-chain.
|
||||
But what if a whitelisted node starts misbehaving?
|
||||
A network node that notices a problem with another network node can:
|
||||
- Locally graylist or blacklist the offending peer.
|
||||
- Attempt to notify its human operator, who may then cast an on-chain vote against the offender.
|
||||
- Attempt to notify its network peers, who may then graylist or blacklist the offending peer.
|
||||
- Automatically cast an on-chain vote aginst the offender.
|
||||
|
||||
Let's consider the possibility of nodes notifying each other of problematic behavior of other nodes.
|
||||
What if a bad node sends messages to its peers attempting to gray/blacklist a good node?
|
||||
This suggests that each node should listen for such messages from peers, but should require
|
||||
some number of them before taking action.
|
||||
Perhaps the degree of graylisting can build up with additional reports from other peers.
|
||||
|
||||
It should be expected that people will attempt to attack the network nodes.
|
||||
If we enforce whitelisting by reputation stakes via on-chain network node contract,
|
||||
we raise the bar considerably for a successful attack.
|
||||
Remaining threat models:
|
||||
- A reputation holder may attempt to act against the interests of the DAO.
|
||||
- A supply chain attack may occur against the network node or user agent
|
||||
- A man-in-the-middle attack may occur between network nodes, or between user agents and network nodes
|
||||
- A network node may be compromised.
|
||||
- A user agent may be compromised.
|
||||
|
||||
Among these threats, the supply chain attack against the network node is the most severe.
|
||||
The other threats are limited because individual nodes, clients, or accounts must be compromised one by one.
|
||||
But a supply chain attack may compromise many nodes, clients, or accounts.
|
||||
Therefore, securing the supply chain is a top priority for this system.
|
||||
|
||||
## What's the desired timing of the process to initiate a new network node?
|
||||
If the initiator already has reputation available to stake, maybe the process shouldn't take very long.
|
||||
However, it's an action with serious repercussions. If network nodes can be added quickly,
|
||||
then anyone in control of a disproportionately large amount of reputation for whatever reason,
|
||||
could potentially quickly add a fleet of new network nodes and execute a 51% attack on the forum.
|
||||
So, on the order of hours to days seems reasonable to me. Also the answer may depend on the current number of network nodes.
|
||||
When there are more, it will make sense to add them in batches, and it might be nice to expedite that process to an appropriate degree.
|
||||
On the other hand, there may not be a legitimate value in adding many new network nodes in the same physical location.
|
||||
If they're going to be spreat out in space, their activation might as well be spread out in time.
|
Loading…
Reference in New Issue