-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ETCM-17] Implements blak2b compress #649
Conversation
3374b76
to
28789a9
Compare
private def bytesToLong(bytes: Array[Byte]) = Pack.littleEndianToLong(bytes, 0) | ||
|
||
def isValidInput(input: Array[Byte]): Boolean= { | ||
if (input.length != MessageBytesLength || (input(212) & 0xFE) != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just def isValidInput(input: Array[Byte]): Boolean = !(input.length != MessageBytesLength || (input(212) & 0xFE) != 0)
?
@@ -37,6 +39,10 @@ object PrecompiledContracts { | |||
Bn128MulAddr -> Bn128Mul, | |||
Bn128PairingAddr -> Bn128Pairing | |||
) | |||
|
|||
val istanbulPhoenisContracts = byzantiumAtlantisContracts ++ Map( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: typo: istanbulPhoenixContracts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
According to spec in:https://eips.ethereum.org/EIPS/eip-152