Skip to content

fix(drive-abci): an IdentityUpdate adding malformed ECDSA/BLS key data gets an internal error at check_tx #5464

Closed

Description

@shumkov

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

  1. added this to the v5.1.0 milestone on Oct 15, 2026
  2. added a commit that references this issue on Nov 2, 2026
    dfb6351
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions