Skip to content

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

Open
colinaumaty wants to merge 1 commit into
0xPolygon:mainfrom
colinaumaty:refactor/append-eip191-prefix
Open

refactor(wallet): append the EIP-191 prefix directly#1003
colinaumaty wants to merge 1 commit into
0xPolygon:mainfrom
colinaumaty:refactor/append-eip191-prefix

Conversation

@colinaumaty

Copy link
Copy Markdown

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

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