Closed admin4life closed 6 years ago
By default key is compressed, because this result L2cQMfbGpih4yTTTa3Dx4YHo4CLXqvJ5rKsggs9iswuXQYECC8aK
.
5K38ZKiJBMmsk9iLcaakHfMa6FoZpLKpmhyo9aZnjossPc49J7e
also valid, but this WIF key for uncompressed public key.
It looks like coinkey is creating a valid WIF addresses from private key hex. However, they are the wrong WIF address. One example is a0dc65ffca799873cbea0ac274015b9526505daaaed385155425f7337704883e
If you use
The resulting WIF is
L2cQMfbGpih4yTTTa3Dx4YHo4CLXqvJ5rKsggs9iswuXQYECC8aK
However, it should be
5K38ZKiJBMmsk9iLcaakHfMa6FoZpLKpmhyo9aZnjossPc49J7e
I might be all wrong as I'm no expert I was just trying to verify my own code against an established library. But all other sources I've tried to check against point to the coinstring code being wrong (which you are also the owner of). Please let me know if I'm wrong. The basic code I'm using to generate a WIF is here