How can wegenerate cosmos supported keypairs

Did you guys update api for generating public and private keys
Is GenPrivKeySecp256k1FromSecret the latest method
Or we still need to use hd.DerivePrivateKeyForPath,
hd.ComputeMastersFromSeed

Can you help out on how we can recreate cosmos public and private keys in our own api
We did using the method GenPrivKeySecp256k1FromSecret for generation but the resulting key string is of length 40 but the cosmos addr generated using gaiacli is 39.

@sentinel-official

@eon_1 I’d be happy to help. What exact API are you referring to and what are you trying to do exactly? Also, what version of gaiacli are you using?