Skip to content

fix(sdk-coin-starknet): normalize signableHex and widen verifyTransaction guard#9072

Merged
shubham-damkondwar merged 1 commit into
masterfrom
CECHO-1376
Jun 22, 2026
Merged

fix(sdk-coin-starknet): normalize signableHex and widen verifyTransaction guard#9072
shubham-damkondwar merged 1 commit into
masterfrom
CECHO-1376

Conversation

@shubham-damkondwar

Copy link
Copy Markdown
Contributor

Node's hex decoder under Node 24+ rejects '0x' prefixes in Buffer.from, producing empty buffers. This caused the Starknet deploy account signing path to send empty hashes to the keyserver, resulting in 400 validation errors.

  • Stripped '0x' prefix and left-padded signableHex to 64 characters to conform with standard BitGo raw hex convention.
  • Widened verifyTransaction short-circuit to support raw 64-character hex hashes, preventing runtime JSON parsing crashes.
  • Updated builder unit tests and added verification test case.

TICKET: CECHO-1376

…tion guard

Node's hex decoder under Node 24+ rejects '0x' prefixes in Buffer.from,
producing empty buffers. This caused the Starknet deploy account
signing path to send empty hashes to the keyserver, resulting in 400
validation errors.

- Stripped '0x' prefix and left-padded signableHex to 64 characters to
  conform with standard BitGo raw hex convention.
- Widened verifyTransaction short-circuit to support raw 64-character
  hex hashes, preventing runtime JSON parsing crashes.
- Updated builder unit tests and added verification test case.

TICKET: CECHO-1376
@linear-code

linear-code Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

CECHO-1376

@shubham-damkondwar shubham-damkondwar marked this pull request as ready for review June 20, 2026 12:30
@shubham-damkondwar shubham-damkondwar requested a review from a team as a code owner June 20, 2026 12:30
@shubham-damkondwar shubham-damkondwar merged commit 4de1213 into master Jun 22, 2026
22 checks passed
@shubham-damkondwar shubham-damkondwar deleted the CECHO-1376 branch June 22, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants