Warning: do not disclose your private key like (I just did) for your coin not to be stolen. Anyone that sees your private key or seed phrase can use it to compromise your wallet and still your coins.So my private key is 66 characters long, but when i conver it to 130 characters it no longer validate my adress, but the 66 one do? My adress is legacy p2pkh, it's an old adress, so is it possible to have only one key operating for public and private? Also i still have hella problems to import it, idk what to do anymore.
Do not confuse yourself, you need to differentiate between private key and public key. Public key is in 130 characters in hexadecimal format if not in compressed format. But if the public key is in compressed hexadecimal format, it will has 66 characters. So not your private key is in 66 and 130 characters, it is your public key.
Private key in hexadecimal format has 64 characters
Example: 519AEF44454373646EB682F0B3281F99F53E6F48D019D08DDF676F9DB4BE6901
Private key that has 51 characters (of base58) starts with 5 and it has 51 characters , (not compressed).
Example: 5JSE5RpYy3P5WXkFHCGB2GrMM7PP5EBCHXRraiNyRwM2gyZbVfo
Private key that has 52 characters (of base58) starts with either K or L has 52 characters, (compressed).
Example: KyxLiYYt6MWSuLht2UhyEcxpomBnRf9zowJhqodz54sQTEdzaDgH
Private key that is of base64 has characters 44 characters
Example= UZrvREVDc2RutoLwsygfmfU+b0jQGdCN32dvnbS+aQE=
As for public key, it can either be in compressed format (66 characters) or not compressed (130 characters)
130 characters, not compressed, hexadecimal format. Start with 04
Example: 0446C936213B1C97D88D5C4BFF3D78FD0D2F03056D851F54E633BAAADDEC224FA5FEAEF45ADFA4C
C3285D544BB914077DFFEC48FDCD8D5691557FAB7940F501FC2
66 characters, compressed, hexadecimal format. Start with 02 or 03
Example: 0246C936213B1C97D88D5C4BFF3D78FD0D2F03056D851F54E633BAAADDEC224FA5