Author

Topic: PHP script to validate a bech32 wallet ? (Read 161 times)

legendary
Activity: 2758
Merit: 6830
December 17, 2019, 02:12:05 AM
#4
500 erros happen when your PHP code is wrong or throwing errors. You must fix them.

You can post it in a pastebin and link it here if you don’t mind.
legendary
Activity: 3472
Merit: 10611
December 16, 2019, 11:30:58 PM
#3
Unfortunately, none of them are PHP... but perhaps they might give you some hints as to how to implement in PHP? Huh

reference implementations in BIPs aren't always the best anyways.
you can always go on GitHub and search for whatever you want and add the "language:FOO" at the end like this: https://github.com/search?q=bech32+language%3APHP&type=Repositories to find what you need. in this case there is only one repository in PHP that has this: https://github.com/Bit-Wasp/bech32
you can also switch to "Code" tab to find the code in other bigger projects, although that search is a bit harder. https://github.com/search?q=bech32+language%3APHP&type=Code
HCP
legendary
Activity: 2086
Merit: 4361
December 16, 2019, 10:17:27 PM
#2
I assume you actually want to validate a bech32 address, not a "wallet" (a wallet is a collection of private keys).

The BIP173 wiki page has links to some reference implementations of encoders/decoders here: https://en.bitcoin.it/wiki/BIP_0173#Reference_implementations

Unfortunately, none of them are PHP... but perhaps they might give you some hints as to how to implement in PHP? Huh
newbie
Activity: 6
Merit: 6
December 16, 2019, 07:10:46 PM
#1
Hi,

This is my first post.

I looked on several website but I can't find the good information.

Does anyone can help me out or point me where I can find how to validate a bech32 wallet in php ?

Thank you very much.
Jump to: