leonardocustodio / polkadart

Polkadart provides developers the ability to query a node and interact with the Polkadot based chains using Dart.
https://polkadart.dev
Apache License 2.0
39 stars 16 forks source link

[question] any plan to add sr25519 support on substrate_bip39? #448

Closed gtmickey closed 6 months ago

gtmickey commented 8 months ago

I want to get seed and store on localdb rather than store user's mnemonic. I saw substrate_bip39 can get seed from api. but no sr25519 support. Keyring support sr25519, but keyring made _seed as private value, cannot get it.

leonardocustodio commented 7 months ago

@justkawal can you check this one?

justkawal commented 6 months ago

@gtmickey Sorry for late reponse.

I guess you could get the seed with:

final List<int> seed = await KeyPair.sr25519.seedFromUri('your mnemonic uri');