Business-Bitcoin
view release on metacpan or search on metacpan
lib/Business/Bitcoin.pm view on Meta::CPAN
=head1 HOW TO USE
To start receiving Bitcoin payments online, create an HD wallet using
a BIP-32 HD wallet app such as Electrum, get the Extended Public Key
for the wallet (a string beginning with "xpub") and plug it into the
constructor's XPUB argument.
Now you can receive online payments as outlined above, while keeping
your private key secure offline or in a hardware wallet. You should
take all precautions to ensure that your XPUB key on the server is
also safe, as its compromise can weaken your security, though it can't
in itself lead to the loss of any Bitcoin.
To make this work right you need to find the correct key to plug into
the XPUB parameter, so that the addresses generated by
Business::Bitcoin match those your wallet uses to receive payments.
If you're using the Electrum wallet, you can just use its Master
Public Key (from the menubar select Wallet -> Master Public Keys). To
use this key you must also set the 'Path' parameter to 'electrum' when
creating a new Business::Bitcoin object (or via the path() accessor).
( run in 0.917 second using v1.01-cache-2.11-cpan-65fba6d93b7 )