Thanks for the asnwer, My project is to design an API that can be generic API (not platform specific) for cryptographic functions.
WolfSSL is one of the main platforms that I need to support in the future and implement the APIs for it.
so I propused an API which accept binary data of the private key, binary data for the public key and the Curve.
As much as I know, public key validation is done over a given curve.
so the ecc_key struct contains parameters which is related to the curve, so as I can see from the code that the ecc_key
I'll create from the binary data, will be related to some Curve.
according to the wc_ecc_check_key(ecc_key* key) implementation it does check the given key with the curve already exist in the ecc_key object.
Thanks alot for the answer, you helped a lot,
Mohammad