Skip to content

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

Open
shubham-damkondwar wants to merge 1 commit into
masterfrom
CECHO-1376
Open

fix(sdk-coin-starknet): normalize signableHex and widen verifyTransaction guard#9072
shubham-damkondwar wants to merge 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

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
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.

1 participant