Crypt::HashCash::Vault::Bitcoin - Bitcoin Vault for HashCash Digital Cash
$Revision: 1.124 $ $Date: Mon Jun 19 15:52:00 PDT 2017 $
use Crypt::HashCash::Vault::Bitcoin;; my $vault = new Crypt::HashCash::Vault::Bitcoin ( Create => 1 ); my ($id, $turing) = $vault->turingimg; # Get a Turing image my $address = $vault->predeposit # Get an address for a deposit ( TuringID => $id, TuringString => $string, Amount => $amount ); my @inits = $vault->initdeposit # Get init vectors for a deposit ( Address => $address, NumCoins => $numcoins ); my @coins = $vault->deposit # Deposit Bitcoin and receive coins ( Requests => \@requests, Address => $address ); my @inits = $vault->initexchange # Get init vectors for an exchange ( FeeCoins => \@coins, ExchangeDenoms => $xchgdenoms, ReqDenoms => $reqdenoms, ReplacedDenoms => $replaceddenoms, ChangeDenoms => $changedenoms ); my @coins = $vault->exchange # Exchange / verify coins ( Coins => \@coins, Requests => \@requests, ChangeRequests => \@changerequests, FeeDenoms => $feedenoms ); $vault->withdraw ( # Withdraw Bitcoin ( Coins => \@coins, Requests => \@requests, Amount => $amount, Change => $change );
This module implements a Bitcoin vault for the HashCash digital cash system. It provides methods to deposit Bitcoin and receive HashCash coins, to exchange and verify HashCash coins, and to redeem HashCash for Bitcoin.
Creates and returns a new Crypt::HashCash::Vault::Bitcoin object.
Ashish Gulhati, <crypt-hashcash at hash.neo.tc>
<crypt-hashcash at hash.neo.tc>
Please report any bugs or feature requests to bug-crypt-hashcash at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Crypt-HashCash. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-crypt-hashcash at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Crypt::HashCash::Vault::Bitcoin
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Crypt-HashCash
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Crypt-HashCash
CPAN Ratings
http://cpanratings.perl.org/d/Crypt-HashCash
Search CPAN
http://search.cpan.org/dist/Crypt-HashCash/
Copyright (c) 2017 Ashish Gulhati.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
See http://www.perlfoundation.org/artistic_license_2_0 for the full license terms.
To install Crypt::HashCash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::HashCash
CPAN shell
perl -MCPAN -e shell install Crypt::HashCash
For more information on module installation, please visit the detailed CPAN module installation guide.