- Create an association between a Frame domain or URL and an fid that can be lazily verified.
- Minimize number of tools and network requests required to verify a domain association.
- Allow for future extensions to domain verification.
The idea is to provide a way for an FID to publicly declare that they trust a URL. The simplest way to achieve this is
- The FID cast "I trust URL" (
embed
orparent_url
) - The URL may include in its metadata the cast(fid, hash). This way any client that
wants to verify that the URL is trusted by the specific FID, can use
GetCast(fid, URL)
to check thattext=TRUST
andparent_url=URL
.
- Introduce a new REACTION_TYPE_TRUST = 3
- The URL owner will have to submit a message
MESSAGE_TYPE_REACTION_ADD
withReactionType=3
andtarget_url=<URL>
. - The URL can embed the FID in their metadata (or HTTP headers for non-html URLs)
- The app that wants to verify the relation can use
GetReaction(fid, REACTION_TYPE_TRUST, URL)
.
Additional benefits:
- An app can use
GetReactionsByTarget(ReactionsByTargetRequest)
to check if more than one fid trust this URL. This allows multiple FIDs to declare that they trust a URL (for example, a well-trusted FID whose purpose is to verify URLs. - It is easy to revoke the trust, by deleting the reaction.
The major consideration for both approaches is that we also trust the signer of the messages. Apps may address this in more than one ways:
- require an additional, well-trusted fid to send a trust declaration.
- don't require, but leverage additional trust declarations by well-trusted fids, to display a "trust level" indicator.
- trust a predefined list of signers (in which case, users would have to use one or two trusted clients to cast trust).
For both proposals: Clients may decide to do a lazy implementation (query hubs every time), but can also listen to hub events and update their local db with trust announcements and revocations.
An important issue with this approach is that casts/reactions may be pruned. Which can be seen as both a problem (trust will be removed) but also as a way to make sure that trust declarations expire.