Browse Source

bugfix: ob-watcher base58 encoding

master
Adam Gibson 5 years ago
parent
commit
59747d857b
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 2
      scripts/obwatch/ob-watcher.py

2
scripts/obwatch/ob-watcher.py

@ -439,7 +439,7 @@ def get_dummy_nick():
privacy, a conformant nick is created based on a random
pseudo-pubkey."""
nick_pkh_raw = hashlib.sha256(os.urandom(10)).digest()[:NICK_HASH_LENGTH]
nick_pkh = btc.b58encode(nick_pkh_raw)
nick_pkh = btc.base58.encode(nick_pkh_raw)
#right pad to maximum possible; b58 is not fixed length.
#Use 'O' as one of the 4 not included chars in base58.
nick_pkh += 'O' * (NICK_MAX_ENCODED - len(nick_pkh))

Loading…
Cancel
Save