You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the generated address is not padding with 1 when the first byte in the hash is 00.
Thankfully, this doesn't affect the search algorithm as it compares hash160 to hash160 but it is worth noting that anywhere the Address.fromPublicKey() function is used, it can potentially display a wrong address.
The text was updated successfully, but these errors were encountered:
In random testing of this tool, I found out that it generated the wrong address for the following:
public key:
02b9e58a925566151f0c168980b36b4c5815c0b85f226f590d16a00467e0b037da
hash160:
00b3fed5f2135a0f3f6ac65e67ecf3b0239d9cfb
generated address:
14idJbAR6gZ8A5zMqTHF28RxU8w2DE9ui
expected address:
114idJbAR6gZ8A5zMqTHF28RxU8w2DE9ui
I believe the generated address is not padding with 1 when the first byte in the hash is 00.
Thankfully, this doesn't affect the search algorithm as it compares hash160 to hash160 but it is worth noting that anywhere the
Address.fromPublicKey()
function is used, it can potentially display a wrong address.The text was updated successfully, but these errors were encountered: