message: bugfix: fix bech32_encode calls in gen_key_io_test_vectors.py
diff: @@ -145,7 +145,7 @@ def gen_valid_bech32_vector(template):
  witprog = bytearray(os.urandom(template[2]))
  encoding = template[4]
  dst_prefix = bytearray(template[5])
  - rv = bech32_encode(hrp, [witver] + convertbits(witprog, 8, 5), encoding)
  + rv = bech32_encode(encoding, hrp, [witver] + convertbits(witprog, 8, 5))
  return rv, dst_prefix + witprog
  def gen_valid_vectors():
  @@ -206,7 +206,7 @@ def gen_invalid_bech32_vector(template):
  encoding = template[3]
  if no_data:
  - rv = bech32_encode(hrp, [], encoding)
  + rv = bech32_encode(encoding, hrp, [])
  else:
  data = [witver] + convertbits(witprog, 8, 5)
  if template[4] and not no_data:
  @@ -214,7 +214,7 @@ def gen_invalid_bech32_vector(template):
  data[-1] |= 1
  else:
  data.append(0)
  - rv = bech32_encode(hrp, data, encoding)
  + rv = bech32_encode(encoding, hrp, data)
  if template[5]:
  i = len(rv) - random.randrange(1, 7)
  