Skip to content

[account-web-vault] Refactor how database endpoints are specified #92

Open
@tahpot

Description

@tahpot

Key requirements:

  • We need to pivot the architecture so that an end user, by default, is responsible for setting the service endpoint(s) to use for a given application context.
  • We also need to ensure an application running on testnet that talks to user's Vault ensures the Vault is running in testnet mode as well.
  • We need to make connecting an application to the Vault much simpler, which is currently complicated by the need to specify database endpoints.

Changes required:

  • Applications are no longer required to specify endpoints when connecting an account to the Verida network via the Vault (this will still be required when using the account-node package). Task
  • The QR code must specify the network being connected to (testnet, mainnet), so the Vault can construct an appropriate response with correct service endpoints for the requested network. Task
  • The Vault must be updated to understand different networks (login screen, settings). Task
  • The Vault must be updated to allow users to specify their own default endpoint or host their own. Task
  • The developer interface for connecting a user to an application must be simplified to it's minimal requirements. Task

Suggested interface:

const options = {}
const context = new Context(`CONTEXT_NAME`, 'testnet', options)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions