Bugfix: _blkmk_b58check: Check that zero-padding on base58check input matches output

This is needed to properly reject addresses with too many or too few prefix/pad '1's.
This commit is contained in:
Luke Dashjr
2012-12-29 02:33:22 +00:00
parent 307b08c267
commit 5ab4fdff16
3 changed files with 21 additions and 5 deletions

View File

@@ -13,6 +13,6 @@ extern bool _blkmk_hex2bin(void *o, const char *x, size_t len);
// base58.c
extern bool _blkmk_b58tobin(void *bin, size_t binsz, const char *b58, size_t b58sz);
extern int _blkmk_b58check(void *bin, size_t binsz);
extern int _blkmk_b58check(void *bin, size_t binsz, const char *b58);
#endif