- SEE ALSO
- LICENSE AND COPYRIGHT
Crypt::HashCash::Vault::Bitcoin - Bitcoin Vault for HashCash Digital Cash
$Revision: 1.130 $ $Date: Sat Dec 22 18:42:26 PST 2018 $
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.
<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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
Copyright (c) Ashish Gulhati.
This software package is Open Software; you can use, redistribute, and/or modify it under the terms of the Open Artistic License 2.0.
Please see http://www.opensoftwr.org/oal20.txt for the full license terms, and ensure that the license grant applies to you before using or modifying this software. By using or modifying this software, you indicate your agreement with the license terms.