pointbiz / bitaddress.org

JavaScript Client-Side Bitcoin Wallet Generator
https://www.bitaddress.org
2.42k stars 1.5k forks source link

uncompressed doesn't work as intended #239

Closed kelalaka153 closed 3 years ago

kelalaka153 commented 3 years ago

I've entered a string for "brain wallet" and checked the compressed and uncompressed versions.

I've seen that uncompressed doesn't start with 0x04 and doesn't have the same values with the compression and the sizes are almost the same.

uncompressed base58 values

18RDuzGJBtYToJtSwTDt4k1iFjJGUBgU3B 5HxbyXpUkWiuqMDW1UwPMU6jbWhLuvo5tVExTRwSvFEypr6ok23

compressed base58 values

1HQZsZ519MzZHqukdjinCoE6K7rTfFkAcT KwrRNX2ZV4BzCQEB38K3fLcK1L54tcSQaFebmf5KQ1rhowywSWtK

text is "stupid online hahsing" and hex-encoded version is here;

https://crypto.stackexchange.com/a/90214/18298

This should be the point compression

https://crypto.stackexchange.com/a/83468/18298