how to generate new Bitcoin address for each users?
I don't want to use APIs and share my private-key.
I search a lot in google, there are so many tutorials that explain how to generate new bitcoin address for each users.
such as : https://github.com/Bit-Wasp/bitcoin-php
how can I use this?
I enter this :
composer require bitwasp/bitcoin
Using version v0.0.35.1 for bitwasp/bitcoin ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 9 installs, 0 updates, 0 removals - Installing pleonasm/merkle-tree (1.0.0): Loading from cache - Installing paragonie/random_compat (v2.0.17): Loading from cache - Installing fgrosse/phpasn1 (1.5.3): Loading from cache - Installing mdanter/ecc (v0.4.3): Loading from cache - Installing lastguest/murmurhash (1.3.0): Loading from cache - Installing composer/semver (1.4.2): Loading from cache - Installing bitwasp/secp256k1-php (v0.1.3): Loading from cache - Installing bitwasp/buffertools (v0.4.1): Loading from cache - Installing bitwasp/bitcoin (v0.0.35.1): Loading from cache paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.) fgrosse/phpasn1 suggests installing php-curl (For loading OID information from the web if they have not bee defined statically) Writing lock file Generating autoload files
And its create vendor folder in htdocs so what is next step?
where should install it? in htdocs folder? or in home folder? where should I copy Bitcoin-php-master folder?
I copy Bitcoin-php-master files next to vendor folder in htdocs.
and run for example one of this php file and its show this error:
http://127.0.0.1/sign_steps.php
Fatal error: Uncaught Error: Class 'BitWasp\Bitcoin\Key\Factory\PrivateKeyFactory' not found in /opt/lampp/htdocs/sign_steps.php:12 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/sign_steps.php on line 12
there is now video in youtube
please describe step by step how to install this and how to use it
or how to use GitHub lib such as this one in general
thank you very much
https://ift.tt/2Swd68T
Comments
Post a Comment