toHash: if two keys
compare equal, they must produce the same hash value. The implementation should use constant-time comparison (e.g., safeEqual) for the encoded bytes to prevent timing attacks, but this means the comparison time will vary with key length.
Parameters
other | The key to compare against. |
Returns
true if the keys are equal, false otherwise.