This project demonstrate the Single Sign On using the blockchain. it workes as a decentralized auth which autheticate the user without storing their data in a decentralized server.
This project is entirely made on hardhat. has one smart contract called sso which has all the nessesary functions that are required for authentication. has 4-5 scripts including a deployment script. hardhat-gas-reporter is already implemented. will reqire to add the specific packages to run the application at other end.
To Use the project at your end:
- intialize a folder and an empty local git repository
- fork the project to your local repository
- run yarn/npx hardhat node to get all the account
- make a .env file and specify the rpc_url and your accounts private id's there
- to run on goerli testnet add your own private key and node end-point (from alkemy)
- to compile the smart contract you can use
yarn hardhat compile
- to deploy the script on local node
yarn hardhat run scripts/deploy.js
- try running at your end and feel happy to contribute
Try running some of the following tasks: (can use yarn/npx)
i used YARN in project
npx hardhat help
npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js
npx hardhat run scripts/store.js
npx hardhat run scripts/validate.js
npx hardhat run scripts/getcount.js