Skip to content

[Multi-Tenant] Wallet address prefixes #3278

@mkurapov

Description

@mkurapov

Context

Each tenant should have a setting for which wallet address prefix they are allowed to use. For example, in the context of JOPACC, an example would be:

Bank 1 (Tenant 1):
Prefix/range: https://jopacc.com/arabbank/
https://jopacc.com/arabbank/<user>

Bank 2 (Tenant 2):
Prefix/range: https://jopacc.com/abcbank/
https://jopacc.com/abcbank/<user>

If a tenant tries to create a wallet address with the incorrect "prefix" or "range", then we should throw an error.
We should store this prefix/range in the tenant settings.

During wallet address creation, we should check whether the non-operator tenant is trying to create a wallet address with the correct URL. Be wary of slashes.

Todos

  • Allow configuring a wallet address prefix or range via tenant settings
  • Check the wallet address prefix during wallet address creation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions