mirror of
https://github.com/3lLobo/zkAuth.git
synced 2026-04-22 03:00:12 -04:00
This is the bacqend, the smart-contract crib
We proudly present the TotpAuthenticator. One step closer to zero trust and one step away from web2. You can now use 2FA authentication for your business contacts your web-applications or even your IOTs without a centralized database storing your keys and authenticating users. The Blocqchain takes over!
Cyborg Run 🏃♂️
Yarn, remix and hardhat:
yarn hardhat node
yarn remixd -s . --remix-ide https://remix.ethereum.org
yarn hardhat test
Hashing
How to calculate and submit hash:
convert TOTP (eg. 123456) to bytes/hex with ethers. Padding left!!!
Then sha256 it and insert 0x at the start.
That's it, now it should match the sha256 on-chain.
Optimism
A blocqchain with free lunch, I mean, free gas! How could we not choose for Optimism?
Contract TotpAuthenticator deployed to Optimism Goerli:
0xAdF1c645E2bb8C0057537263db6Ae6ECa7085966
# Deployment transaction hash
0x846528416731ddd42e37b8f2dc9fbac24aaf105ebe23d53707a680fc99d68ce0
Owner wallet:
0x369551E7c1D29756e18BA4Ed7f85f2E6663e1e8d
