10 changed files with 97 additions and 7 deletions
@ -1 +1 @@ |
|||
Subproject commit 4b682fb3e710c4b2303295fdfde72195854097dc |
|||
Subproject commit a38206f17cd125044d87eb85bf2cf6dcd055e9a0 |
@ -0,0 +1,38 @@ |
|||
package com.sparrowwallet.sparrow.io; |
|||
|
|||
import com.sparrowwallet.drongo.protocol.ScriptType; |
|||
import com.sparrowwallet.drongo.wallet.Keystore; |
|||
import com.sparrowwallet.drongo.wallet.WalletModel; |
|||
|
|||
import java.io.InputStream; |
|||
|
|||
public class PassportMultisig extends ColdcardMultisig { |
|||
@Override |
|||
public String getName() { |
|||
return "Passport Multisig"; |
|||
} |
|||
|
|||
@Override |
|||
public WalletModel getWalletModel() { |
|||
return WalletModel.PASSPORT; |
|||
} |
|||
|
|||
@Override |
|||
public Keystore getKeystore(ScriptType scriptType, InputStream inputStream, String password) throws ImportException { |
|||
Keystore keystore = super.getKeystore(scriptType, inputStream, password); |
|||
keystore.setLabel("Passport"); |
|||
keystore.setWalletModel(getWalletModel()); |
|||
|
|||
return keystore; |
|||
} |
|||
|
|||
@Override |
|||
public String getKeystoreImportDescription() { |
|||
return "Import file or QR created from Settings > Pair Software Wallet > Sparrow > Multisig > microSD/QR on your Passport."; |
|||
} |
|||
|
|||
@Override |
|||
public boolean isKeystoreImportScannable() { |
|||
return true; |
|||
} |
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.sparrowwallet.sparrow.io; |
|||
|
|||
import com.sparrowwallet.drongo.protocol.ScriptType; |
|||
import com.sparrowwallet.drongo.wallet.Keystore; |
|||
import com.sparrowwallet.drongo.wallet.WalletModel; |
|||
|
|||
import java.io.InputStream; |
|||
|
|||
public class PassportSinglesig extends ColdcardSinglesig { |
|||
@Override |
|||
public String getName() { |
|||
return "Passport"; |
|||
} |
|||
|
|||
@Override |
|||
public String getKeystoreImportDescription() { |
|||
return "Import file or QR created from Settings > Pair Software Wallet > Sparrow > Single Sig > microSD/QR on your Passport."; |
|||
} |
|||
|
|||
@Override |
|||
public Keystore getKeystore(ScriptType scriptType, InputStream inputStream, String password) throws ImportException { |
|||
Keystore keystore = super.getKeystore(scriptType, inputStream, password); |
|||
keystore.setLabel("Passport"); |
|||
keystore.setWalletModel(getWalletModel()); |
|||
|
|||
return keystore; |
|||
} |
|||
|
|||
@Override |
|||
public WalletModel getWalletModel() { |
|||
return WalletModel.PASSPORT; |
|||
} |
|||
|
|||
@Override |
|||
public boolean isWalletImportScannable() { |
|||
return true; |
|||
} |
|||
|
|||
@Override |
|||
public boolean isKeystoreImportScannable() { |
|||
return true; |
|||
} |
|||
|
|||
@Override |
|||
public String getWalletImportDescription() { |
|||
return getKeystoreImportDescription(); |
|||
} |
|||
} |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 5.9 KiB |
Loading…
Reference in new issue