NAME
Crypt::HashCash::Vault::Bitcoin - Bitcoin Vault for HashCash Digital Cash
VERSION
$Revision: 1.130 $
$Date: Sat Dec 22 18:42:26 PST 2018 $
SYNOPSIS
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 );
DESCRIPTION
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.
METHODS
new
Creates and returns a new Crypt::HashCash::Vault::Bitcoin object.
keygen
turingimg
predeposit
initdeposit
deposit
initexchange
exchange
withdraw
process_request
SEE ALSO
http://www.hashcash.com
Crypt::HashCash
Crypt::HashCash::Mint
Crypt::HashCash::Client
Crypt::HashCash::Coin
Business::HashCash
AUTHOR
Ashish Gulhati, <crypt-hashcash at hash.neo.tc>
BUGS
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.
SUPPORT
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
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
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.