From f67a2caf5379a6931040f3a9b0c9203e9bfc3f44 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 22 Jan 2025 16:24:43 +0200 Subject: [PATCH] add device registration field to store ledger multisig hmacs --- .../java/com/sparrowwallet/drongo/wallet/Keystore.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/Keystore.java b/src/main/java/com/sparrowwallet/drongo/wallet/Keystore.java index dd9dd6c..af82aa0 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/Keystore.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/Keystore.java @@ -28,6 +28,7 @@ public class Keystore extends Persistable { private KeyDerivation keyDerivation; private ExtendedKey extendedPublicKey; private PaymentCode externalPaymentCode; + private byte[] deviceRegistration; private MasterPrivateExtendedKey masterPrivateExtendedKey; private DeterministicSeed seed; @@ -102,6 +103,14 @@ public class Keystore extends Persistable { this.externalPaymentCode = paymentCode; } + public byte[] getDeviceRegistration() { + return deviceRegistration; + } + + public void setDeviceRegistration(byte[] deviceRegistration) { + this.deviceRegistration = deviceRegistration; + } + public boolean hasMasterPrivateExtendedKey() { return masterPrivateExtendedKey != null; }