brave-intl / bat-go

Pass "go", collect 200 BAT
Mozilla Public License 2.0
41 stars 31 forks source link

Download Secrets File After Shares are Ready #2494

Open Sneagan opened 2 months ago

Sneagan commented 2 months ago

Right now, we download the secrets file before fetching shares. This means that decryption will always fail in cases where we are creating a new vault if the steps are:

  1. Boot
  2. Generate new vault
  3. Bootstrap

Instead, only fetch the secrets file once sufficient shares are fetched to decrypt it.