Ability to generate Stacks wallet

Are there any possibilities to generate a Stacks wallet using blockstack.js, or using account private keys?

Or is it correctly to use a mnemonicToStxAddress function from Stacks Wallet repo → https://github.com/blockstack/stacks-wallet/blob/master/app/utils/utils.js#L47

The blockstack.js use the different coin-type from stack-wallet. You can see the following issue.

You can use cli-blockstack to operate actions like send_token using your private key.

Just for completeness:

You can use a seed phrase and then derive the private keys e.g. using https://github.com/iancoleman/bip39 with the corresponding derivation path

For

  • stacks address: m/44’/5757’/0’/0/0
  • bitcoin address: m/44’/0’/0’/0/0
  • owner address of first profile m/888’/0’/0’
  • owner address of second profile m/888’/0’/1’

(Stacks addresses are encoded using base32 with checksum, all other addresses are base 58 encoded.)

You are in control :slight_smile:

5757 is the registered coin-type for STX stokens at https://github.com/satoshilabs/slips/blob/master/slip-0044.md

The code @bitcoinnews.id.block referenced (mnemonicToStxAddress) can be used with blockstack.js when you add c32check to your project, bip39 is already included in blockstack.js.

:grinning: I just pr blockstack information to the following repo yesterday.

How user register from cointype 0 use stack wallet which use cointype 5757? What do you think?