Need for Specifications
We have started a discussion around writing down specifications for braidpool. This is motivated by the need to clarify the details in our own heads as we build braidpool, but also to enable contributions to braidpool.
Before we can specify the entire stack, we need to identify the layers that make up braidpool. Only then we can specify each layer individually. This will help us to clearly separate the different components. In turn, this gives us the advantages of separating implementations with well defined boundaries.
The layers, informally are:
- P2P nodes
- P2P channels between nodes
- Broadcast over P2P
- Share definition (simply a record)
- Eventually consistent view of messages exchanged
- Accounting formula over the eventually consistent view
- UHPO view - using the eventually consistent view and the accounting formula
- Updates to UHPO - when do these updates get triggered? What is the change?
- Payout transaction - structure of the transaction
- Payout transaction - how does this change the UHPO structure?
- Payout transaction - how do miners check out and leave the network? How does the payout transaction change in response?
- Delivery of shares - transacation constructions and effects