I am looking at this library. https://github.com/bitcoinjs/bitcoinjs-lib
There are numerous type of addresses to choose from:
- Generate a random address
- Generate an address from a SHA256 hash
- Generate a 2-of-3 P2SH multisig address
- Generate a SegWit address
- Generate a SegWit P2SH address
- Generate a SegWit 3-of-4 multisig address
- Generate a SegWit 2-of-2 P2SH multisig address
Why are there so many options and is it safe to choose any address type?
I heard coinbase does not implement SegWit yet. Does that mean if I choose SegWit address, I can't get payments from Coinbase users?
If someone sends me to my SegWit address from a non-SegWit address, will it result in bounce back or money being lost?