From 0250579445da0e73e34611b9dd210d021596ce1c Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 6 Feb 2023 10:56:53 +0200 Subject: [PATCH] tapsigner: change card backup to base64 --- .../java/com/sparrowwallet/sparrow/io/ckcard/CkCardApi.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/io/ckcard/CkCardApi.java b/src/main/java/com/sparrowwallet/sparrow/io/ckcard/CkCardApi.java index 897c446b..2cf66a51 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/ckcard/CkCardApi.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/ckcard/CkCardApi.java @@ -23,6 +23,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.smartcardio.CardException; +import java.util.Base64; import java.util.List; import java.util.Map; import java.util.Optional; @@ -118,7 +119,7 @@ public class CkCardApi extends CardApi { String getBackup() throws CardException { CardBackup cardBackup = cardProtocol.backup(cvc); - return Utils.bytesToHex(cardBackup.data); + return Base64.getEncoder().encodeToString(cardBackup.data); } @Override