mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-29 11:01:22 +00:00
Fix bug in Base58.decode that caused failures when the MSB of the decoded byte array was 1. Thanks to BitterTea and sipa for help with debugging this.
This commit is contained in:
@@ -42,5 +42,9 @@ public class Base58Test extends TestCase {
|
||||
}
|
||||
|
||||
Base58.decodeChecked("4stwEBjT6FYyVV");
|
||||
|
||||
// Now check we can correctly decode the case where the high bit of the first byte is not zero, so BigInteger
|
||||
// sign extends. Fix for a bug that stopped us parsing keys exported using sipas patch.
|
||||
Base58.decodeChecked("93VYUMzRG9DdbRP72uQXjaWibbQwygnvaCu9DumcqDjGybD864T");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user