Skip to content

Commit e28c69d

Browse files
committed
ETCM-167: Fix EVM test to sign a hash.
1 parent 5a8fd3b commit e28c69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/evmTest/scala/io/iohk/ethereum/vm/PrecompiledContractsSpecEvm.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PrecompiledContractsSpecEvm extends AnyFunSuite with Matchers with SecureR
1414

1515
test("Precompiled Contracts") {
1616
val keyPair = generateKeyPair(secureRandom)
17-
val bytes: Array[Byte] = ByteString("aabbccdd").toArray[Byte]
17+
val bytes: Array[Byte] = crypto.kec256(ByteString("aabbccdd").toArray[Byte])
1818
val signature = ECDSASignature.sign(bytes, keyPair)
1919
val pubKey = keyPair.getPublic.asInstanceOf[ECPublicKeyParameters].getQ.getEncoded(false)
2020
val address = crypto.kec256(pubKey.tail).slice(FirstByteOfAddress, LastByteOfAddress)

0 commit comments

Comments
 (0)