export root path key

This commit is contained in:
Dmitry Novotochinov 2019-09-05 12:19:29 +03:00
parent 0b1b319e8e
commit 2718a08879
No known key found for this signature in database
GPG Key ID: 43D1DAF5AD39C927
1 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ public class SmartCard extends BroadcastReceiver implements CardListener {
private static final String TAG = "SmartCard";
private Boolean started = false;
private static final String ROOT_PATH = "m/44'/60'/0'/0";
private static final String WALLET_PATH = "m/44'/60'/0'/0/0";
private static final String WHISPER_PATH = "m/43'/60'/1581'/0'/0";
private static final String ENCRYPTION_PATH = "m/43'/60'/1581'/1'/0";
@ -309,7 +310,7 @@ public class SmartCard extends BroadcastReceiver implements CardListener {
cmdSet.verifyPIN(pin).checkOK();
Log.i(TAG, "pin verified");
byte[] tlvRoot = cmdSet.exportCurrentKey(true).checkOK().getData();
byte[] tlvRoot = cmdSet.exportKey(ROOT_PATH, true, true).checkOK().getData();
BIP32KeyPair keyPair = BIP32KeyPair.fromTLV(tlvRoot);
byte[] tlv = cmdSet.exportKey(WALLET_PATH, true, true).checkOK().getData();