LIT-Protocol / LitGrants

Apply for a Lit grant and be part of the Lit ecosystem!
25 stars 2 forks source link

Small Grants: Flame Wallet SDK, email to email transfers and easy onboarding to evms through Lit Actions #57

Closed cesarhuret closed 1 year ago

cesarhuret commented 1 year ago

1. What is your project? (max 100 words)

Flame Wallet is a simple js and react SDK to create Safes from a social media account, and to send tokens to any google email address, even if they're not in crypto yet.

Old GitHub Repo: https://github.com/cesarhuret/safemail (this is the project from ETHGlobal Paris) New GitHub Repo (nothing on it yet): https://github.com/cesarhuret/useflame Demo: https://safemail-beta.vercel.app/

2. How is Lit used for this project? (max 100 words)

Lit Protocol enables us to use Lit Actions - computing JS code stored on IPFS in a decentralized way. I utilize PKPs and several Lit Actions in order to ensure users can create Safe smart contract accounts with their email addresses in a decentralized way, without centralized points of failure.

  1. A PKP is created using Mint/Grant/Burn, which is attached to a Lit Action allowing it to sign transactions. This allows us to create safes with one global owner for everyone, being the PKP.
  2. With a common owner for all Safes, only a unique identifier (the user's email) is required to be able to create Safes that can be precomputed solely knowing a person's email.
  3. For a user to use this safe, they need to present a Google OAuth token (that is valid for 1 hour) to the Lit Action created in step 1. The Lit Action will verify this OAuth token is valid and fetch the corresponding email address, to then execute a given transaction for the correct safe.
  4. It also has a safe module that allows a user to just execute a transaction on their safe, given that they have a signature of a hash of their email, provided from a Lit Action. The module will recover the signer address and will check if it is the correct lit signer.

3. How will you improve your project with this grant? What steps will you take to meet this objective? (max 200 words)

Deliverables:

  1. Build working JS SDK for nodejs and browser environments, as well as fix all bugs and clean up hackathon code.
  2. ERC-4337: Support more advanced standards for AA, including ERC4337 and Kernel
  3. Multichain: Integrate all EVM chains that Lit supports
  4. React Hooks SDK: Build custom react hooks sdk for users to integrate Flame Wallet really quickly into their dapps
  5. Documentation: Build documentation and examples for developers

4. Is this project open source?

Yes, it will be under the MIT License

5. Do you agree to share grant reports upon request, including a final grant report at the end of the two month period?

Yes

6. Links and submissions

7. Total Budget Requested

Total Budget: $3750

Additional questions: