MultiversX Tracker is Live!

Question about verification function of sample smart contract wallet account from the Ethereum foundation

Etherum Reddit

More / Etherum Reddit 100 Views

Contract code: here

EIP documentation: here

I've been studying account abstraction, and I'm confused about where the userOpHash comes from in the contract above. From the way the contract is written along with the EIP documentation provided above, it seems like the owner of the contract is supposed to generate the userOpHash before sending the UserOperation object (from the EIP documentation: "The userOpHash is a hash over the userOp (except signature), entryPoint and chainId."). However, while playing around with Alchemy's "eth_sendUserOperation" function (here), I can't seem to find a place to include the userOpHash (it only has a place for signature which is different). This makes me assume that the hashing is handled by the EntryPoint contract, but I'm not sure at all if this is true. Can someone help explain to me how the hashing is happening and how the verification function in the contract code actually works?

submitted by /u/andrewwanggg
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments