relaycorp / awala-endpoint-android

High-level library for Android apps implementing Awala endpoints
Apache License 2.0
1 stars 1 forks source link

Load `PublicThirdPartyEndpoint` by Internet address #349

Open gnarea opened 11 months ago

gnarea commented 11 months ago

Describe the problem

We can't load PublicThirdPartyEndpoints by Internet address, so any app with multiple types of third-party endpoints (e.g., Letro with contacts and VeraId Authority endpoints) would either have to (1) store a mapping of its public third-party endpoints by Internet address (to skip unnecessary imports) or (2) do nothing and request/import connection params unnecessarily.

Describe the solution you'd like

PublicThirdPartyEndpoint.loadByAddress(internetAddress: String): PublicThirdPartyEndpoint?