tangle-network / dkg-substrate

Multy-party threshold ECDSA (GG20) Substrate node
https://tangle.webb.tools/
GNU General Public License v3.0
60 stars 15 forks source link

[TASK][Testnet] Investigate ways to backup signing keys of nodes #684

Closed 1xstj closed 11 months ago

1xstj commented 1 year ago

Currently if the DB of a running node is curropted, it loses the current active key and is unable to sign proposals, if enough of these nodes lose keys then the testnet might stall.

Example :

🕸️  Signing protocol concluded with Err(GenericError { reason: "Will skip signing since local key does not exist" })

Goal :

Related issue : #716

tbraun96 commented 1 year ago

We should use sqlx with the tokio runtime feature enabled. We should also only enable sqlite, since, this will allow us to atomically make transactions, ensuring that if we ever ran out of disk space in the future, we wouldn't have a corrupt state.

The additional benefit to this is that we will be able to store data in a structured way.

drewstone commented 11 months ago

This is relevant for the POST hook of a completed TSS job (phase 2 tss)