From ae10a93d2924271a79e64e60e24e7c6d20454282 Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Thu, 8 Dec 2022 22:19:57 -0700 Subject: [PATCH] Set default curve in EVMTool (#4790) Set default EC curve when starting up EVMTool. Signed-off-by: Danno Ferrin --- CHANGELOG.md | 1 + .../src/main/java/org/hyperledger/besu/evmtool/EvmTool.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2da9fe7ba6..a2951c28e3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Implement Eth/68 sub-protocol [#4715](https://github.com/hyperledger/besu/issues/4715) - Increase the speed of modexp gas execution and execution. [#4780](https://github.com/hyperledger/besu/pull/4780) - Added experimental CLI options `--Xeth-capability-max` and `--Xeth-capability-min` to specify a range of capabilities to be supported by the Eth protocol. [#4752](https://github.com/hyperledger/besu/pull/4752) +- Set the default curve in the EVMTool, like is done in production operations [#4790](https://github.com/hyperledger/besu/pull/4790) ### Bug Fixes diff --git a/ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/EvmTool.java b/ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/EvmTool.java index 47aa2ba1b59..2712280f238 100644 --- a/ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/EvmTool.java +++ b/ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/EvmTool.java @@ -15,11 +15,14 @@ */ package org.hyperledger.besu.evmtool; +import org.hyperledger.besu.crypto.SignatureAlgorithmFactory; + import picocli.CommandLine; public final class EvmTool { public static void main(final String... args) { + SignatureAlgorithmFactory.setDefaultInstance(); final EvmToolCommand evmToolCommand = new EvmToolCommand();