Open
Description
Context
Celestia is upgrading from Cosmos SDK v0.46.x to v0.50.x
Problem
In Cosmos SDK v0.46.x, when a user submit a tx with a nil
public key in the signature data, it would fail in the sig verify decorator (confirmed in this test).
In Cosmos SDK v0.50.x, when a user submits the same tx with a nil
public key in the signature data, it would result in a panic. See this issue.
These lines were added recently to main
cosmos-sdk/x/auth/tx/adapter.go
Lines 64 to 66 in b862752
which make the panic message more useful to end users. I'm porting that change to Celestia's Cosmos SDK fork but I have a few questions:
- If a tx's signature data has a nil public key, is that always considered invalid?
- Instead of hitting this
panic
, can we introduce some stateless checks on the signature earlier in the antehandler flow in order to throw an error?
Metadata
Metadata
Assignees
Labels
No labels