Skip to content

refactor(wallet): append the EIP-191 prefix directly - #1003

Merged
minhd-vu merged 2 commits into
0xPolygon:mainfrom
colinaumaty:refactor/append-eip191-prefix
Sep 21, 2026
Merged

minhd-vu merged 2 commits into
0xPolygon:mainfrom
colinaumaty:refactor/append-eip191-prefix

Conversation

@colinaumaty

Copy link
Copy Markdown
Contributor

Description

Build the EIP-191 personal_sign prefix with fmt.Appendf instead of fmt.Sprintf followed by []byte conversion. The prefix bytes, message length encoding, and resulting Keccak-256 digest are unchanged.

Jira / Linear Tickets

N/A

Testing

  • go test ./cmd/heimdall/wallet -count=1

@minhd-vu minhd-vu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! 🔥

@minhd-vu
minhd-vu enabled auto-merge (squash) September 21, 2026 22:34
@minhd-vu
minhd-vu merged commit 8e0d8e9 into 0xPolygon:main Sep 21, 2026
11 checks passed
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