Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: willmakeacoin on January 15, 2018, 09:33:54 PM



Title: How to generate valid wallet and private keys with PHP
Post by: willmakeacoin on January 15, 2018, 09:33:54 PM
hello,

as several coins I have do not have a paperwallet generator and the only language I speak is PHP,
does anyone know how can someone create wallets of any currency using PHP ?

thanks


Title: Re: How to generate valid wallet and private keys with PHP
Post by: BitMaxz on January 15, 2018, 11:27:51 PM
Are you planning to make a website that can generate wallet and priv keys in php?
I think you can't get any free script here mostly they are selling it look at this thread as sample https://bitcointalk.org/index.php?topic=2276372.0
But if you wanted to make your own you should install your own bitcoin core you make wallet in php via JSON-RPC
You can check the JSON-RPC in php here https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

But if you wanted an easy step without running bitcoind daemon you should buy the script from trusted sellers.. i don't know if the above link is trusted or not since its neutral i think its still safe..


Title: Re: How to generate valid wallet and private keys with PHP
Post by: willmakeacoin on January 15, 2018, 11:49:44 PM
@BitMaxz: thanks, but as mentioned in the OP, I am not looking to make it for BTC, but other alt-coins that do not currently have a paperwallet generator, so having a ton of daemons, might be pointless after all.

I wonder, considering it is basic cryptography, can someone shed some light, which php functions shall be utilized to generate a valid wallet & priv key combo randomly and how it can be customized to work for each different crypto coin and it's settings ?


Title: Re: How to generate valid wallet and private keys with PHP
Post by: master2080 on January 16, 2018, 06:48:38 AM
Find out how to manually generate a key for each of the currency you want, then just implement it in PHP?

Where's the issue exactly?


Title: Re: How to generate valid wallet and private keys with PHP
Post by: willmakeacoin on February 07, 2018, 05:39:40 PM
so, nobody knows ?


Title: Re: How to generate valid wallet and private keys with PHP
Post by: garlex on February 08, 2018, 09:38:51 PM
Are you attempting to wrap a native coin client in PHP or code it from scratch in PHP? The difference is immense.


Title: Re: How to generate valid wallet and private keys with PHP
Post by: pebwindkraft on February 09, 2018, 10:25:46 AM
not a PHP expert, but this topic comes up all time in StackExchange. You might search there, basically people use libraries that are required.
Closest I could come up with is here:
https://bitcoin.stackexchange.com/questions/64117/php-is-there-a-way-to-convert-a-private-ecdsa-key-to-its-corresponding-public-k (https://bitcoin.stackexchange.com/questions/64117/php-is-there-a-way-to-convert-a-private-ecdsa-key-to-its-corresponding-public-k)

Simply do a search in the topline with the word "php", and you'll get some replies. Hope this brings you forward.