mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
Fix reason why BIP38 test vector is failing, Java strings can contain null characters just fine.
This commit is contained in:
parent
bab16650f9
commit
0addfd63ec
@ -16,20 +16,19 @@
|
|||||||
|
|
||||||
package com.google.bitcoin.crypto;
|
package com.google.bitcoin.crypto;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import com.google.bitcoin.core.ECKey;
|
||||||
|
import com.google.bitcoin.crypto.BIP38PrivateKey.BadPassphraseException;
|
||||||
|
import com.google.bitcoin.params.MainNetParams;
|
||||||
|
import com.google.bitcoin.params.TestNet3Params;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.ObjectInputStream;
|
import java.io.ObjectInputStream;
|
||||||
import java.io.ObjectOutputStream;
|
import java.io.ObjectOutputStream;
|
||||||
|
|
||||||
import org.junit.Ignore;
|
import static org.junit.Assert.assertEquals;
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import com.google.bitcoin.core.ECKey;
|
|
||||||
import com.google.bitcoin.crypto.BIP38PrivateKey.BadPassphraseException;
|
|
||||||
import com.google.bitcoin.params.MainNetParams;
|
|
||||||
import com.google.bitcoin.params.TestNet3Params;
|
|
||||||
|
|
||||||
public class BIP38PrivateKeyTest {
|
public class BIP38PrivateKeyTest {
|
||||||
|
|
||||||
@ -55,7 +54,7 @@ public class BIP38PrivateKeyTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("Test disabled because you cannot pass \\u0000 in Strings.")
|
@Ignore("Test disabled because this test vector appears to be broken in the spec, see discussion on bitcoin-development in July 2014")
|
||||||
public void bip38testvector_noCompression_noEcMultiply_test3() throws Exception {
|
public void bip38testvector_noCompression_noEcMultiply_test3() throws Exception {
|
||||||
BIP38PrivateKey encryptedKey = new BIP38PrivateKey(MAINNET,
|
BIP38PrivateKey encryptedKey = new BIP38PrivateKey(MAINNET,
|
||||||
"6PRW5o9FLp4gJDDVqJQKJFTpMvdsSGJxMYHtHaQBF3ooa8mwD69bapcDQn");
|
"6PRW5o9FLp4gJDDVqJQKJFTpMvdsSGJxMYHtHaQBF3ooa8mwD69bapcDQn");
|
||||||
|
Loading…
Reference in New Issue
Block a user