mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
ensure whirlpool wallets use nfkd encoding for passphrases
This commit is contained in:
parent
1c3c2d8089
commit
2e1ee0c5b2
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,7 @@ import java.util.concurrent.TimeoutException;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static com.sparrowwallet.sparrow.AppServices.getTorProxy;
|
import static com.sparrowwallet.sparrow.AppServices.getTorProxy;
|
||||||
|
import static org.bitcoinj.crypto.MnemonicCode.SPARROW_FIX_NFKD_MNEMONIC;
|
||||||
|
|
||||||
public class WhirlpoolServices {
|
public class WhirlpoolServices {
|
||||||
private static final Logger log = LoggerFactory.getLogger(WhirlpoolServices.class);
|
private static final Logger log = LoggerFactory.getLogger(WhirlpoolServices.class);
|
||||||
|
@ -46,6 +47,7 @@ public class WhirlpoolServices {
|
||||||
public WhirlpoolServices() {
|
public WhirlpoolServices() {
|
||||||
ExtLibJConfig extLibJConfig = computeExtLibJConfig();
|
ExtLibJConfig extLibJConfig = computeExtLibJConfig();
|
||||||
this.sorobanConfig = new SorobanConfig(extLibJConfig);
|
this.sorobanConfig = new SorobanConfig(extLibJConfig);
|
||||||
|
System.setProperty(SPARROW_FIX_NFKD_MNEMONIC, "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
private ExtLibJConfig computeExtLibJConfig() {
|
private ExtLibJConfig computeExtLibJConfig() {
|
||||||
|
|
Loading…
Reference in a new issue