Post
Topic
Board Development & Technical Discussion
Re: How to create a Bech32 (bc1) address with PHP standalone?
by
100bitcoin
on 25/04/2019, 18:36:07 UTC
Can these addresses be derived from legacy private key?
There is no such thing as "legacy private key". There has always been 1 type of private key, which is a number from 1 to curve's n-1.
Ok. So, what would be the Bech32 (bc1) address derived from the following?

Private Key(Hex): C070A5ECF7138485E5FBC3561BC43D0C3C6052397768B1A7CB996444E8CB917D

Public Key(Compressed): 0228B2993B17F77EB967F3761F72B6B35E4B5C229D5208771F4C9154C42CE7CC13

Any step by step instruction similar to this, will be of great help.
https://bitcointalk.org/index.php?topic=4992632.0
Step 0 for you would be to get the public key from private key as you would any other time (private key * G).
Fantastic guide. Do you know any PHP code, which does this?