I'm designing a system for maintaining a decentralized global state and need your help…
- User
I'm designing a system for maintaining a decentralized global state and need your help making it work.
Here are the high-level requirements. Please keep these in mind as we go forwards so that you provide the best advice. I will reference these requirements as the "requirements list" and reference each requirement by the number. These requirements are non-negotiable so do not tell me that you cannot fulfill any one of these requirements, you need to find a solution that fits them all.
Requirements List:
- This is a trustless system so it needs some way to validate that a user has permission to change the state
- This is a decentralized system, so anyone can run a version of this software to take part in the network. We will call a user's deployment of this software a "node"
- This system uses Lamden's smart contracting package called contracting for running and creating smart contracts.
- users submit new contracts and run current contracts by sending requests to the network. A user can send a request to any node on the network.
- The network is global and runs on any hardware on any type of network. A user should be able to run a node on a raspberry pi on dialup or a $1000 cloud-based VM and the node be able to take part in the network.
- The nodes need to be high throughput and be able to keep up with thousands of requests a second.
- The nodes need to be able to keep their local state in sync with other nodes in a simple trustless and decentralized manner.
- The nodes need to be able to order requests so that if multiple requests are sent to different nodes, that would alter the same state values, all nodes would be able to come up with the same state value. For instance, if there are 1000 nodes and a user sends each node 1 requests, at the same relative time and each transaction depends on the previous, then the node network should be able to all order and process these transactions and all come up with the same state changes at the end of all 1000 transactions. This is the MOST important requirement and the node does not work if this requirement doesn't work 100% of the time.
- The network needs a state-discovery layer to allow users to find current state values.
- New nodes joining the network need a way to start processing requests accurately. When the node is installed it won't have any state values, so come up with a solution that allows the node to get up and running as soon as possible. This solution should work if there is 10MB of state or 1TB of state.
- This solution needs to scale from 10 nodes to 1000 nodes. It cannot have any bottlenecks that would prevent this.
Give me a solution to each requirement making SURE that your solution does not invalidate any other requirement.
Do not give me choices, you are making the choices for all parts of the solution based on what is the most efficient and scalable.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.