From 07c1f9cc42fc3bc572043051df9c9a8a62568ad0 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Wed, 17 Jan 2018 15:29:16 +0000 Subject: [PATCH] Make boolean true 0xFF, not 0x01 --- src/main/java/im/status/wallet/WalletApplet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/im/status/wallet/WalletApplet.java b/src/main/java/im/status/wallet/WalletApplet.java index e1d827d..0ff342a 100644 --- a/src/main/java/im/status/wallet/WalletApplet.java +++ b/src/main/java/im/status/wallet/WalletApplet.java @@ -331,10 +331,10 @@ public class WalletApplet extends Applet { apduBuffer[off++] = puk.getTriesRemaining(); apduBuffer[off++] = TLV_BOOL; apduBuffer[off++] = 1; - apduBuffer[off++] = privateKey.isInitialized() ? (byte) 0x01 : (byte) 0x00; + apduBuffer[off++] = privateKey.isInitialized() ? (byte) 0xFF : (byte) 0x00; apduBuffer[off++] = TLV_BOOL; apduBuffer[off++] = 1; - apduBuffer[off++] = SECP256k1.hasECPointMultiplication() ? (byte) 0x01 : (byte) 0x00; + apduBuffer[off++] = SECP256k1.hasECPointMultiplication() ? (byte) 0xFF : (byte) 0x00; return (short) (off - SecureChannel.SC_OUT_OFFSET); }