NAME
Crypt::HashCash::Vault::Bitcoin - Bitcoin vault for HashCash digital cash
VERSION
$Revision: 1.119 $
$Date: Sun Jun 11 21:21:31 PDT 2017 $
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
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) 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.