I am building a python script that gets a string and determines if it is a valid bitcoin private key or public key, and if so it returns its type/format (base58, BIP32, HexaDecimal etc.) and its derivations (public key from private key and address from public key).
Is there any free library that I can use its code inside mine, to get those details?
I have tried to do so myself but there are a lot of formats of keys and mathematical computations for validation and derivation the keys. Thank you.