NethermindEth / near-sffl

https://nffl.nethermind.io/
MIT License
6 stars 3 forks source link

Improve parameter validation in aggregator routes #239

Open Hyodar opened 3 weeks ago

Hyodar commented 3 weeks ago

Basically in all API routes (REST and RPC) we are not validating parameters enough. For example, doing a non-nil check on the signed message signature or adding bounds to the checkpoint messages fetching.

emlautarom1 commented 3 weeks ago

doing a non-nil check on the signed message signature

Could you elaborate on this?

emlautarom1 commented 3 weeks ago

adding bounds to the checkpoint messages fetching

Added on #250

Hyodar commented 2 days ago

Could you elaborate on this?

The signed messages .Signature is a pointer, even though the signed message struct itself is a value.