LIT-Protocol / LitGrants

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

Small Grants: Krebit credentials as Lit Actions + Cloud Wallet authentification methods #20

Open krebit opened 1 year ago

krebit commented 1 year ago

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

Krebit provides a Verifiable Credentials protocol, that helps you import your reputation and earn money with your talent and network.

We believe in Decentralization as a means for preserving privacy and having a more meritocratic world.

Github repos: https://github.com/KrebitDAO

Website: https://krebit.id/

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

In Krebit credentials, the user's Personal Identifiable Information (PII) is encrypted using the Lit protocol. Users are in full control on which credentials are public and which ones are encrypted for certain people using the access control conditions.

During the verification process, the user gives temporarily access to the verification node, who checks the proofs provided by the user and issues the verifiable credential.

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

Using Lit actions + Cloud Wallet (PKPs) to onboard new users to web3 with web2 using Krebit Verifiable credentials as authentification method.

Use case: access/recover your Lit cloud wallet using your phone number:

  1. Owner of PKP uses burner wallet1 to set a group of conditions to be met to unlock their cloud wallet: i.e. email AND phoneNumber existing credentials

  2. The user then loses/rotates or burns wallet1.

  3. Using burner wallet2, the user gets temporarily verifiable credentials for the same email and phoneNumber.

  4. The credentials are sent to the Lit action verifier who has access to both wallwt1 and wallet2 encrypted data to compare and give access to the PKP.

4. Is this project open source?

All of our code is released with 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

Our project began as a gitcoin grant: https://gitcoin.co/grants/3522/krebit-web3-verifiable-credentials

Already integrated with Orbis: https://t.co/HfLZjgmaVF

7. Total Budget Requested

Total: $5,000:

Additional questions:

Lit core team

debbly commented 1 year ago

Hi, can you do a breakdown of the hours for each step and what a smaller scope for this project might look like?

krebit commented 1 year ago

Hi @debbly ,

This project will require a bit more of a learning curve to see what is possible with the Auth methods on the PKPPermissions.sol smart contract and how to create a user friendly flow of adding the credentials as auth method. After understanding this, we can determine if we handle auth in the Lit Action or if we want to rely on the Lit nodes for auth.

So maybe the milestones could be:

0) Setting up PKPPermissions.sol dev environment (~20 hours) 1) Prototype of adding credentials as auth method to PKPPermissions.sol (~40 hours) 2) Prototype of using credentials as auth method from LitActions (~40 hours) 3) Final version based on the results of 1) and 2) (~40 hours)

Maybe we could start with a prototype and then adapt/reduce the scope as we move forward.

Thanks, Alejandro from Krebit

debbly commented 1 year ago

Hi @krebit, we're interested in seeing open source tooling for folks looking to do cloud wallet auth with Lit Actions, in what ways could this project be modularized so that people can build this into their own dApp?