Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more types of addresses #9

Open
br14n-sol opened this issue Dec 7, 2021 · 0 comments
Open

Add more types of addresses #9

br14n-sol opened this issue Dec 7, 2021 · 0 comments

Comments

@br14n-sol
Copy link
Contributor

br14n-sol commented Dec 7, 2021

In the case of bitcoin and derived chains, there are 3 types of addresses:

  • p2pkh (legacy) -- prefix: 1
  • p2wpkh (bech32 or segwit) -- prefix: bc1
  • p2sh (multi-signature) -- prefix: 3

it would be interesting to have something like:

walletfy.generateWallet({
   coin: 'btc',
   type: '' // legacy (default) | segwit | multi-signature
})

all these types of addresses can be generated in the same way as is currently done with the bitcoinjs-lib module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant