Skip to content

tx_pool: code improvement for EIP-55 check with strict canonical SC address format#400

Merged
chrischarlesharrison merged 1 commit into
masterfrom
fix/eip55-bridge-address-validation
May 27, 2026
Merged

tx_pool: code improvement for EIP-55 check with strict canonical SC address format#400
chrischarlesharrison merged 1 commit into
masterfrom
fix/eip55-bridge-address-validation

Conversation

@chrischarlesharrison
Copy link
Copy Markdown
Collaborator

No description provided.

… format

The bridge SC address in tx_extra is derived deterministically from the
sender's spend secret key via secp256k1 -> keccak -> pod_to_hex, which
always emits lowercase hex. The previous EIP-55 mixed-case validation
could never legitimately fire and contained three defects (8-of-40 char
truncated checksum, mixed-case-only gate that skipped lowercase entirely,
and a broken digit comparison branch). Replace it with a single regex
that requires the canonical "0x" + 40 lowercase hex form the wallet
produces; reject anything else outright.
@chrischarlesharrison chrischarlesharrison merged commit dc03ca7 into master May 27, 2026
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant