Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

Remove conditional hashing in ethermint PrivKey.Sign method#1562

Open
GarmashAlex wants to merge 1 commit into
cosmos:mainfrom
GarmashAlex:hpp63
Open

Remove conditional hashing in ethermint PrivKey.Sign method#1562
GarmashAlex wants to merge 1 commit into
cosmos:mainfrom
GarmashAlex:hpp63

Conversation

@GarmashAlex

Copy link
Copy Markdown

This commit removes the conditional Keccak256 hashing in the PrivKey.Sign method
as indicated by the TODO comment. The method now expects properly formatted digest
bytes to be provided by the caller without applying any additional processing.

This change simplifies the API and makes the behavior more predictable and direct
by removing the automatic fallback to hashing. All tests continue to pass after
this modification, confirming that existing functionality is preserved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant