OpenZeppelin / solidity-jwt

Experiments with Solidity JWT. Do not use in production.

Home Page:https://identity-recovery-demo.openzeppelin.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solidity JWT validator

This project includes a set of contracts and a Vue-based demo that allow you to deploy an identity contract and then recover it using Google Sign-In. This is a proof-of-concept and is definitely not ready for production ⚠️

Project setup

  • Install dependencies via npm install
  • Create a project in the Google Developers console
  • In the Credentials section of your project, create an OAuth 2.0 for a Web Application
  • Copy the client ID to your .env local file
  • Start a local ganache instance and copy the network ID to your local .env file
  • Update the keys in scripts/deployKeys.js using the latest JWKS shared by Google
  • Deploy the JWKS contract running npx truffle exec scripts/deployKeys.js --network local and copy the deployment address to your local .env file
  • Run locally with npm run serve, or set up a production build with npm run build

3rd party smart contracts

About

Experiments with Solidity JWT. Do not use in production.

https://identity-recovery-demo.openzeppelin.com/


Languages

Language:Solidity 71.3%Language:Vue 14.8%Language:JavaScript 11.7%Language:Shell 1.2%Language:HTML 1.0%