Skip to content

zk-auth-com/mina-google-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mina Gmail JWT verivication oracle

Please take a look our hachathon project hosted by @DeveloperDAO and @MinaProtocol

Demo Loom

Can see here

How it works

  1. The user visits the web page and expresses a strong desire to log in with Google.
  2. The user clicks on the "Login" button.
  3. The web page's application requests a Google JWT (JSON Web Token) from the user.
  4. The user sends the JWT and specifies the amount of tokens to send to the Smart Contract.
  5. The Smart Contract initiates a request to the oracle.
  6. The oracle retrieves the public key from Google and verifies the RSA signature.
  7. If the signature is valid, the oracle returns the email and nonce signed by the oracle itself.
  8. The Smart Contract receives the data and executes the transaction.

How to build

  1. Clone this git repository and change to the project directory
git clone https://github.com/zk-auth-com/mina-google-keys.git
cd mina-google-keys
  1. Install project dependencies
npm install
  1. Follow the build steps under each part

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •