DappLink MPC Network(Tss)
MPC(Tss) Network For DappLink Baas
Note: Requires Go 1.19.0
Introduce
In the network, there are two roles (Node and Manager), and they communicate via WebSocket:
- Node: A node that participates in MPC private key computation.
- Manager: Responsible for coordinating Keygen and Sign operations. It communicates with nodes using the WebSocket protocol.
Network Operation Process
- Network Startup: Nodes register with the Manager, and the Manager records the number of registered nodes.
- Keygen: When the Manager receives a Keygen instruction from the wallet, it sends the instruction to the nodes. After completing the Keygen process, the nodes submit the aggregated public key to the Manager. The Manager verifies the aggregated public key to ensure consistency across all nodes, thus completing the Keygen process.
- Sign: When the Manager receives a Sign instruction from the wallet, it sends the MessageHash, keyId, and signing instruction to the nodes. After the nodes complete the signing process and return their signatures to the Manager, the Manager aggregates the results and returns the final signature to the wallet layer.
Installation
For prerequisites and detailed build instructions please read the Installation instructions. Once the dependencies are installed, run:
make
Or check out the latest release.
Setup And Run