You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(drive-abci): an IdentityUpdate adding malformed ECDSA/BLS key data gets an internal error at check_tx #5464
An IdentityUpdate that adds an ECDSA_SECP256K1 or BLS12_381 key whose data is not a valid public key (for example 20 bytes, a 33-byte value that is not a curve point, or a 47-byte BLS key) gets an internal error at check_tx (code 13, logged at ERROR) instead of a consensus error. Fee estimation computes the key hash of the not-yet-validated key data and fails.
This is admission only: block execution already rejects such an update with a consensus error, and every protocol version behaves the same. IdentityCreate, IdentityCreateFromAddresses and the shielded identity create already refuse such keys at check_tx with a consensus error.
Related: #5441 / #5463 (hash key data size at protocol version 14).
Activity
test(drive-abci): pin the check_tx consensus error for an IdentityUpd…