Files
zkAuth/backend
3lLobo ef07097396 The Merge 🌊
2022-09-18 19:14:51 +02:00
..
2022-09-18 19:03:16 +02:00
2022-09-18 19:03:16 +02:00
2022-09-18 19:03:16 +02:00
2022-09-17 21:31:34 +02:00
Prettier 💅
2022-09-15 00:47:06 +02:00
2022-09-18 19:03:16 +02:00
2022-09-18 19:14:51 +02:00
2022-09-18 19:03:16 +02:00
2022-09-07 21:24:03 +02:00

This is the bacqend, the smart-contract crib

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.

sha256

bytes32

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

Testnet Explorer

Faucets