Yes sent to the wrong address. I think something like this happened.
Got a private key in compressed WIF. Generated a public key but it didn't remove the 0x01 on the end that signifies compression.
This will just "
correctly" encode it into WIF that starts with "
L" or "
K" unlike your description in the OP that it starts with "
5".
That compression flag byte is the only difference, the 'network byte', the private key's length and method of computing the 'checksum' remain the same.
Or are you talking about a compression flag byte at the end of the public key itself?
That doesn't exist in the pubKey, it's only used to encode a private key to WIF for its compressed pubKey pair.
Or are you talking about the private key that still has the compressed flag byte?
That will make its length incorrect with that additional byte.
However when I take my private key and generate the public key, it does work, and it shows a balance.
Got a private key in compressed WIF. Generated a public key but it didn't remove the 0x01 on the end that signifies compression.
Are you talking about your own script script in these replies?
Can you share the code or snippet of the part where it decodes WIF to private key, computes the public key from the private key, and where it does pubKey->Pubkeyhash->Address.