stackup-wallet / stackup-bundler

A fast, reliable, and modular ERC-4337 Bundler written in Go.
https://docs.stackup.sh
GNU General Public License v3.0
226 stars 128 forks source link

Separation of UserOp signature validation vs paymaster signature validation #363

Open eerkaijun opened 9 months ago

eerkaijun commented 9 months ago

When an invalid signature is provided, the error message is Invalid UserOp signature or paymaster signature. Thinking that it might be useful to separate the error message (i.e. separate the validation logic of paymaster signature vs UserOp signature)? In that case, it is easier for developers to debug which signature went wrong.