We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8fd3b commit e28c69dCopy full SHA for e28c69d
src/evmTest/scala/io/iohk/ethereum/vm/PrecompiledContractsSpecEvm.scala
@@ -14,7 +14,7 @@ class PrecompiledContractsSpecEvm extends AnyFunSuite with Matchers with SecureR
14
15
test("Precompiled Contracts") {
16
val keyPair = generateKeyPair(secureRandom)
17
- val bytes: Array[Byte] = ByteString("aabbccdd").toArray[Byte]
+ val bytes: Array[Byte] = crypto.kec256(ByteString("aabbccdd").toArray[Byte])
18
val signature = ECDSASignature.sign(bytes, keyPair)
19
val pubKey = keyPair.getPublic.asInstanceOf[ECPublicKeyParameters].getQ.getEncoded(false)
20
val address = crypto.kec256(pubKey.tail).slice(FirstByteOfAddress, LastByteOfAddress)
0 commit comments