Can you give me a link to the use you are referring to? I’m traveling so it’s a little hard to follow. But generally if you are using the type ec_secret for something that is not an elliptic curve (secp256k1) secret then you should declare a new independent type.