mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 16:43:14 +00:00
fix computation of master fingerprint for satochip
This commit is contained in:
@@ -139,7 +139,9 @@ public class SatoCardApi extends CardApi {
|
||||
ExtendedKey.Header xtype = Network.get().getXpubHeader();
|
||||
String xpub = this.cardProtocol.cardBip32GetXpub(keyDerivationString, xtype);
|
||||
ExtendedKey extendedKey = ExtendedKey.fromDescriptor(xpub);
|
||||
String masterFingerprint = Utils.bytesToHex(extendedKey.getKey().getFingerprint());
|
||||
String masterXpub = this.cardProtocol.cardBip32GetXpub("m", xtype);
|
||||
ExtendedKey masterExtendedKey = ExtendedKey.fromDescriptor(masterXpub);
|
||||
String masterFingerprint = Utils.bytesToHex(masterExtendedKey.getKey().getFingerprint());
|
||||
KeyDerivation keyDerivation = new KeyDerivation(masterFingerprint, keyDerivationString);
|
||||
|
||||
Keystore keystore = new Keystore();
|
||||
|
||||
Reference in New Issue
Block a user