From 23a068ca30a54681d7539ca689a1a81104b850b8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 19 Jan 2018 19:37:25 +0200 Subject: [PATCH] Test --- iguana/segwit_addr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/segwit_addr.c b/iguana/segwit_addr.c index c4f63b3d6..9891a93b0 100644 --- a/iguana/segwit_addr.c +++ b/iguana/segwit_addr.c @@ -139,7 +139,8 @@ int bech32_decode(char* hrp, uint8_t *data, size_t *data_len, const char *input) chk = PolyMod_step(chk,ch); } hrp[i] = 0; - chk = bech32_polymod_step(chk); + //chk = bech32_polymod_step(chk); + chk = PolyMod_step(chk,0); for (i = 0; i < hrp_len; ++i) { //chk = bech32_polymod_step(chk) ^ (input[i] & 0x1f); chk = PolyMod_step(chk,input[i] & 0x1f);