Table of Contents
High-level Specification
Functionality | Details |
---|---|
FIO App Account Types |
|
Alternative Account |
|
Sign-in |
|
Sign Transaction |
|
Metamask SNAP
Overview
Metamask Snap is an extension of Metamask browser plug-in, which allows for new functionality, e.g. ability to sign transactions on a non-EVM chain.
The FIO Snap allows Metamask users to gain access to the FIO App and execute transactions without having to create an account, which requires email and password.
Sign-in Flow
Sign Transaction Flow
Inside SNAP Functionality
Visual | Functionality |
---|---|
FIO Handle Resolution |
"endowment:name-lookup": {}
export const onNameLookup: OnNameLookupHandler = async (request) => { const { chainId, address, domain } = request; if (domain) { const resolvedAddress = '0xc0ffee254729296a45a3885639AC7E10F9d54979'; return { resolvedAddresses: [{ protocol: 'FIO Handle', resolvedAddress: resolvedAddress, domainName: domain, }] }; } return null; }; DEV NOTE: specification: https://metamask.github.io/SIPs/SIPS/sip-12 |
SNAP Home PageNo FIO Handle and No FIO Tokens and No Pending FIO Requests1+ FIO Handles and >0 FIO Tokens and 1+ FIO Requests |
|
Inside FIO App Functionality
Visual | Functionality |
---|---|
Authenticate |
|
Sign Transaction |
|
Decrypt Content |
|
Sign out |
|
Add Comment