Update crypto lib
Morgandri1 opened this issue · comments
Hello!
I did a brief look-over of the crate and noticed that it implements secp256k1
and was having some issues with the signing key.
This may be due to me not researching fully, but how can I derive my signing key from my private key? using a mnemonic w/ derivation path is a pain, and not great for some applications where a privateKey is simpler.
I propose an update which supports the use of secret keys and signing TXs with the private key
"Signing key" is just the nomenclature this library uses for a private key.
You can find a full signing example here: https://docs.rs/cosmrs/latest/cosmrs/tx/index.html#usage
You can use SigningKey::from_slice
if you have an existing private key serialized as bytes.
Thank you for that info.
I would suggest possibly adding that to docs or adding a from_string helper, something like that.