From b0667385933b6134450c115e1d0e480c10fed342 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 10 Mar 2024 20:53:56 +0100 Subject: [PATCH] Code formatting --- .../jmaa/pbc/PbcVanityAddressSearcher.java | 102 +++++++++--------- 1 file changed, 53 insertions(+), 49 deletions(-) diff --git a/src/main/java/jmaa/pbc/PbcVanityAddressSearcher.java b/src/main/java/jmaa/pbc/PbcVanityAddressSearcher.java index 15d2f50..1d05d42 100644 --- a/src/main/java/jmaa/pbc/PbcVanityAddressSearcher.java +++ b/src/main/java/jmaa/pbc/PbcVanityAddressSearcher.java @@ -1,14 +1,12 @@ package jmaa.pbc; -import java.util.List; +import com.partisiablockchain.BlockchainAddress; +import com.partisiablockchain.crypto.KeyPair; import java.math.BigInteger; import java.util.ArrayList; -import com.partisiablockchain.BlockchainAddress; -import com.partisiablockchain.crypto.BlockchainPublicKey; -import com.partisiablockchain.crypto.KeyPair; +import java.util.List; -/** Search for PBC vanity addresses. - */ +/** Search for PBC vanity addresses. */ public final class PbcVanityAddressSearcher { private static final int NUM_THREADS = 8; @@ -16,16 +14,17 @@ public final class PbcVanityAddressSearcher { private static final long INITIAL_PING_INTERVAL = 10_000; public static void main(String[] args) throws InterruptedException { - final AddressRequirements requirements = parseArgumentsToRequirements(args); + final AddressRequirements requirements = parseArgumentsToRequirements(args); searchForPrivateKeyWithVanityAddress(requirements); } - private static void searchForPrivateKeyWithVanityAddress(AddressRequirements addressRequirements) throws InterruptedException { - System.out.println("Searching for private key: %s".formatted(addressRequirements)); - System.out.println("Difficulty: 1/%s".formatted(addressRequirements.difficulty())); + private static void searchForPrivateKeyWithVanityAddress(AddressRequirements addressRequirements) + throws InterruptedException { + System.out.println("Searching for private key: %s".formatted(addressRequirements)); + System.out.println("Difficulty: 1/%s".formatted(addressRequirements.difficulty())); List searchers = new ArrayList<>(); - for(int threadIdx=0;threadIdx