fix length test (#314)

merge-requests/3/head
m2049r 6 years ago committed by GitHub
parent 3c8a4ce967
commit 8985511209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,7 +66,7 @@ public class BitcoinAddressValidator {
byte[] result = new byte[25];
byte[] numBytes = num.toByteArray();
if (numBytes.length > result.length) return null;
if (num.bitLength() > 200) return null;
if (num.bitLength() == 200) {
System.arraycopy(numBytes, 1, result, 0, 25);

Loading…
Cancel
Save