From 9717acf29e129717cc5f951b1ac46e1bb7c514c5 Mon Sep 17 00:00:00 2001 From: Carl Norburn Date: Thu, 27 Jun 2024 09:48:14 +0100 Subject: [PATCH] Remove unused exceptions and imports --- .../java/com/syntifi/crypto/key/Secp256k1PrivateKeyTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/com/syntifi/crypto/key/Secp256k1PrivateKeyTests.java b/src/test/java/com/syntifi/crypto/key/Secp256k1PrivateKeyTests.java index b62e6a0c..2b0f65b0 100644 --- a/src/test/java/com/syntifi/crypto/key/Secp256k1PrivateKeyTests.java +++ b/src/test/java/com/syntifi/crypto/key/Secp256k1PrivateKeyTests.java @@ -8,7 +8,6 @@ import java.io.File; import java.io.IOException; import java.net.URISyntaxException; -import java.security.GeneralSecurityException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; @@ -82,7 +81,7 @@ void sign_should_sign_message() throws URISyntaxException, IOException { } @Test - void create_random_key() throws GeneralSecurityException, IOException { + void create_random_key() { Secp256k1PrivateKey sk = Secp256k1PrivateKey.deriveRandomKey(); Secp256k1PublicKey pk = (Secp256k1PublicKey) sk.derivePublicKey(); LOGGER.info(sk.getKeyPair().getPrivateKey().toString(16));