4

Based on my research every bitcoin private key (compressed or uncompressed) can have 4 different addresses:

  • P2PKH compressed and starts with 1
  • P2PKH uncompressed and starts with 1
  • P2SH and starts with 3
  • Bech32 and starts with bc1

Are there any other types of address that can be created from a private key?

3

It depends a lot on the kind of locking condition you want to satisfy. The addresses that you have mentioned would depict 'standard' locking condition where the user reveals their public key and associated signature in order to spend the locked bitcoins. However, you can create custom scripts and then convert them into standard addresses.

For example, locking some bitcoins in a CLTV script using the same private key will generate a completely different address. You can use CSV or any other custom opcodes like OP_ADD to generate those custom scripts and then wrap the script in P2SH or P2WSH. When you spend the funds you need to reveal the custom script and the signatures should match. When you include the possibility of generating standard addresses from the custom made script, the possibilities are endless.

Also, a point to note is that a compressed public key will generate a completely different address as compared to an uncompressed public key.

| improve this answer | |
  • 1
    While the answer is technically correct, I think for most users, you really only end up with a handful of addresses: p2pkh compressed, p2pkh uncompressed, p2pk uncompressed, p2sh-p2wpkh compressed - anything else would likely require significant effort to generate and spend – Raghav Sood Jan 21 at 6:46
  • 1
    @RaghavSood Agreed! But I think OP was looking for a more comprehensive answer. btw you missed native P2WPKH in your comment. – Ugam Kamat Jan 21 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.