mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Remove superfluous AddressFormatException from BIP38PrivateKey.decrypt().
This commit is contained in:
parent
aaf349ea6a
commit
8068230042
@ -84,7 +84,7 @@ public class BIP38PrivateKey extends VersionedChecksummedBytes {
|
|||||||
content = Arrays.copyOfRange(bytes, 6, 38);
|
content = Arrays.copyOfRange(bytes, 6, 38);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ECKey decrypt(String passphrase) throws AddressFormatException, BadPassphraseException {
|
public ECKey decrypt(String passphrase) throws BadPassphraseException {
|
||||||
String normalizedPassphrase = Normalizer.normalize(passphrase, Normalizer.Form.NFC);
|
String normalizedPassphrase = Normalizer.normalize(passphrase, Normalizer.Form.NFC);
|
||||||
ECKey key = ecMultiply ? decryptEC(normalizedPassphrase) : decryptNoEC(normalizedPassphrase);
|
ECKey key = ecMultiply ? decryptEC(normalizedPassphrase) : decryptNoEC(normalizedPassphrase);
|
||||||
Sha256Hash hash = Sha256Hash.createDouble(key.toAddress(params).toString().getBytes(Charsets.US_ASCII));
|
Sha256Hash hash = Sha256Hash.createDouble(key.toAddress(params).toString().getBytes(Charsets.US_ASCII));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user