mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
Update bip38 test3 ignore message again now the problem is better understood.
This commit is contained in:
parent
e143b2b4cb
commit
96ee76e506
@ -96,7 +96,8 @@ public class BIP38PrivateKey extends VersionedChecksummedBytes {
|
||||
|
||||
private ECKey decryptNoEC(String normalizedPassphrase) {
|
||||
try {
|
||||
byte[] derived = SCrypt.scrypt(normalizedPassphrase.getBytes(Charsets.UTF_8), addressHash, 16384, 8, 8, 64);
|
||||
final byte[] passwd = normalizedPassphrase.getBytes(Charsets.UTF_8);
|
||||
byte[] derived = SCrypt.scrypt(passwd, addressHash, 16384, 8, 8, 64);
|
||||
byte[] key = Arrays.copyOfRange(derived, 32, 64);
|
||||
SecretKeySpec keyspec = new SecretKeySpec(key, "AES");
|
||||
|
||||
|
@ -54,7 +54,7 @@ public class BIP38PrivateKeyTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Test disabled because this test vector appears to be broken in the spec, see discussion on bitcoin-development in July 2014")
|
||||
@Ignore("Test disabled because Java doesn't seem to do unicode the same way as other platforms")
|
||||
public void bip38testvector_noCompression_noEcMultiply_test3() throws Exception {
|
||||
BIP38PrivateKey encryptedKey = new BIP38PrivateKey(MAINNET,
|
||||
"6PRW5o9FLp4gJDDVqJQKJFTpMvdsSGJxMYHtHaQBF3ooa8mwD69bapcDQn");
|
||||
|
Loading…
Reference in New Issue
Block a user