axelarnetwork / tofnd

A gRPC server wrapper for the https://github.com/axelarnetwork/tofn library.
Apache License 2.0
25 stars 10 forks source link

Enable key-rotation #273

Closed sergeynog closed 3 months ago

sergeynog commented 2 years ago
ggutoski commented 2 years ago

We don't want to impose off-chain statefulness on the caller (vald), nor do we want tofnd to maintain any state other than mnemonics. A concrete plan as per discussion with @milapsheth:

If you don't like the inefficiency of iterating keygen over all mnemonics then we introduce statefulness. Either caller (vald) or tofnd must maintain state about which mnemonics were used to generate which keys.

Mnemonic management

milapsheth commented 2 years ago

Based on discussion with @ggutoski and @cgorenflo, the proposed design involving axelard/vald/tofnd:

Note, this design works for multisig. In the threshold case, during signing only the secret key share is needed. The mnemonic is not used at all anyways. During on chain recovery of key shares for threshold schemes, recovery can be performed in a similar way by indexing against a provided pubkey/hash.