How do I get privateKey after address generation?
RudrikaFichadiya opened this issue · 5 comments
RudrikaFichadiya commented
How do I get privateKey after address generation?
Booyoun-Kim commented
const ecpairPriv = cosmos.getECPairPriv(mnemonic);
ecpairPriv has value of private key.
RudrikaFichadiya commented
@wannabit-booyoun, Yes, that's correct but the format of that value is unreadable, how can I get PrivateKey from it? Is it possible to get?
Booyoun-Kim commented
Cosmos doesn't support private key formally. It is recommended to use mnemonics rather than private keys.
gelinger777 commented
and any idea how to register totally new account?
Booyoun-Kim commented
@gelinger777 Generate new random mnemonics.