near / mpc

36 stars 11 forks source link

Pick a persistent storage solution (let's **not** use Google Datastore this time though) #430

Closed ppca closed 7 months ago

ppca commented 7 months ago

each gcp project only has one database. And we set up one table for each environment. We are browsing other offerings here: https://cloud.google.com/products/databases?hl=en.

let epsilon = kdf::derive_epsilon(&action.predecessor_id(), &sign_payload.path); key = derive_key(pk, epsilon), so if each (path, account) have the same key. --> we don't need to store keys.

We need to persist:

  1. last block height
  2. triples and presignatures

BigTable sounds like reasonable.

ppca commented 7 months ago

triple persistence PR: https://github.com/near/mpc-recovery/pull/444 review in progress