From 66d96ab29d59ebf377c5d8360c79c6f791589959 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Sat, 25 Mar 2023 17:18:34 -0700 Subject: [PATCH] WalletPasswordController: remove use of Guava `Longs` Use ByteBuffer in private methods for long to byte[] conversion. --- .../wallettemplate/WalletPasswordController.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java b/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java index 1f628baba..546dae264 100644 --- a/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java +++ b/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java @@ -19,7 +19,6 @@ package wallettemplate; import javafx.application.Platform; import org.bitcoinj.crypto.AesKey; import org.bitcoinj.crypto.KeyCrypterScrypt; -import com.google.common.primitives.Longs; import com.google.protobuf.ByteString; import javafx.beans.property.ReadOnlyObjectProperty; import javafx.beans.property.SimpleObjectProperty; @@ -38,6 +37,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.bitcoinj.walletfx.utils.KeyDerivationTasks; +import java.nio.ByteBuffer; import java.time.Duration; import java.util.Objects; @@ -124,12 +124,20 @@ public class WalletPasswordController implements OverlayController