Inspiration
To provide reliable tamper-proof inputs applied to the two-factor authenticator currently adopted by many real-world applications we implement the Google Authenticator for Smart Contracts with a Chainlink oracle.
Chainlink Oracles will have bigger value as they could bring much more information and massive use because of the gas fee reduction derived from the implementation of L2 sidechains.
What it does
We decided the use of Matic Network because It will increase the applicable use cases of this 2FA, due to the benefits: low gas cost, scalability, security, high performance, etc.
This project consists in a Chainlink node scanning the blockchain then picks up on this transaction and queries an off-chain server to validate the 2FA code’s authenticity. Once the Chainlink node receives a response, it delivers this result value on-chain which then determines if the smart contract grants authorization to the original user.
How I built it
Researching, using discord, reading oficial docs, testing and developing.
Challenges I ran into
We need to Implement a chainlink node connected to mumbai matic network.
Accomplishments that I'm proud of
Building trust digital bridge between Chainlink and Matic Network
What I learned
We learned how L2 sidechain works , We dive into chainlink Adapters api. We also have to learn detailed type casting in solidity.
What's next for 2FA for Smart Contracts using Chainlink on Matic Network
We will implement it in many Defi projects.
Built With
- chainlink/ea-bootstrap
- chainlink/external-adapter
- css
- digitalocean
- express.js
- html
- javascript
- material-ui
- matic
- python
- react
- react-dom
- react-scripts
- solidity
- visual-studio-code
- web3
Log in or sign up for Devpost to join the conversation.