-
Hacky & notable & impressive things we did
- Face ID thing to generate a EOA
a. We innovatively realize that account abstraction wallet is able to unlock the potential of built-in hardware security enclave in laptops/mobile phone for verifying on-chain transactions.
b. The default cryptographic schema of security enclave on devices is different from the ECDSA schema Ethereum EOA wallets are using, so previously no one is able to store the private key in those enclaves while still use that key for on-chain signature. However, smart contract wallet enabled by account abstraction allows us to setup in the wallet a transcription logic to transform the signature to the Ethereum standard in a trustless way. Thus, users can directly store their private key in their built-in security enclave, enjoying superb security without sacrificing usability.
- We detected bugs in the official implementation of EIP-4337, and circumvented the problem via private relayer.
a. In the EIP-4337 official implementation, there are some errors in the bundler logic and entrypoint smart contract. to circumvent those problems, we implemented our private relayer as an alterantive to the public bundler RPC, and managed to locate a working entrypoint contract to finish the whole process.
- session key and signature-less transaction
a. Without an public implemention of session key logic in the EIP-4337 framework, we innovatively use the cryptographic signature to ensure that users can use their passkey to make consent to signature-less transaction with a particular contract.
b. We also use the block timestamp logic to add a time constrain to it. So, you can say I want signature-less transaction with this contract within this 30 mintues, but not more. Thus user sovereignty and safety are protected.
- Selective gas fee subsidy based on NFT ownership.
a. While the paymaster module is widely discussed, we combine the third-party payment module with NFT-gating mechanism, and created an innovative mechanism for projects to selective subsidize the gas fees.
b. In addition, our paymaster logic allows project team to partially subsidize gas fees. For example, if the gas fee is $5, we allow project to pay $3 of that, while the user pay the rest $2. Thus it gives project team a lot more flexibility in the whole process.
-
Technical Framework of our project
- EntryPoint Smart Contract: using the public infrastructure defined by EIP-4337
- Wallet Smart Contract:
- We innovatively designed the cryptographic scheme transcription logic to support device-native hardware enclave. The wallet use a common standard called WebAuthN.
- We also added the session key logic to support signature-less transaction here.
- Paymaster smart contract
- contains the partial/full gas subsidy logic, as well as the
- tests
- we use Foundry to test all our logics
- Bundler / private relayer
- We implemented our private relayer to bypass the faults of the current public bundlers implemented
- Frontend
- We implemented a 5-page website to demonstrate our logic.
We used a lot of sponsor technology, including but not limited to token-gating with ENS & Lens, and infrastructure based on EVM public chain ecossytem, as well as openzepplin codebase.