helium / blockchain-core

Apache License 2.0
214 stars 85 forks source link

Add function to convert B58 keypair to seed words #1404

Closed jadeallenx closed 2 years ago

jadeallenx commented 2 years ago

Problem to solve: When we set up a new test network, the genesis block creates N accounts with premine tokens to be used for things like asserting gateways and so forth. But it's inconvenient to construct the transactions to do these things using the helium wallet CLI.

Solution: Using this function, we can get the BIP 39 seed phrase for the private key and then use the helium wallet to transfer tokens to another wallet address, assert gateways and so on.