mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
tapsigner: change card backup to base64
This commit is contained in:
parent
7590d786b5
commit
0250579445
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue