TerenceGe / sr25519-donna

Pure C implementation of schnorrkel algorithm (sr25519)
Apache License 2.0
17 stars 5 forks source link

Generate address from mnemonic phrase #21

Closed mohammad-nazari closed 2 years ago

mohammad-nazari commented 2 years ago

Hi my friend

Thank you for your code I want to generate an address from a mnemonic like "unveil town glide evil true churn warfare banner agent onion uncle process". Please Help,

Thanks,

TerenceGe commented 2 years ago

From mnemonic to address you need to do these steps:

  1. mnemonic phrase to seed
  2. seed to keypair (public key and secret key)
  3. keypair to address (ss58 format)

This library is focused on the step 2 since it's private key related, you can use other library to finish step 1 and 3.

mohammad-nazari commented 2 years ago

So thanks.