Suggestion: Cache the Result of keccak256 in Validator Addition #16
swarna1101
started this conversation in
General
Replies: 1 comment
-
This is already done on the main repo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the current
addValidators
method, the public key hash is computed multiple times usingkeccak256
. Can we make this change:Current:
To:
Cache the result of
keccak256
once and reuse it across operations.Beta Was this translation helpful? Give feedback.
All reactions