Open igor-sirotin opened 1 year ago
It might be good to have a function to getAllTrusted
domains too. In Desktop, it's probably worth to cache those and not have to get it from status-go each time.
Though it could be added later. We just need to make sure that if we use IsTrustedDomain
, we need to call it async.
Problem
There's UI requirement to have "trust this domain" popup: https://github.com/status-im/status-desktop/issues/12388 This domains list should be implemented in status-go, stored in the database and also synced over different installations.
Implementation
To support this, we need these new endpoints in status-go:
AddTrustedDomain
IsTrustedDomain
The data should be stored in a separate
TrustedDomains
table with a singledomain
column. I'm not yet sure what's the best way to implement syncing here. If we should sync the whole table, or row-by-row. Maybe we also need aclock
for syncing.