Crypt::HashCash::Coin - HashCash Digital Cash Coin
$Revision: 1.127 $ $Date: Sat Sep 16 18:48:10 PDT 2017 $
use Crypt::HashCash::Coin; my $coinstr = $coin->as_string; my $coin = Crypt::HashCash::Coin->from_string($coinstr); my $coinhex = $coin->as_hex; my $coin2 = Crypt::HashCash::Coin->from_hex($coinhex); print "OK\n" if $coin-is_valid;
This class provides methods to serialize, deserialize and check the validity of HashCash coins.
Serializes the coin and returns a string representation of it.
Creates and returns a Crypt::HashCash::Coin object from the string provided as the only argument.
Returns true if the coin's instance variable pass basic sanity checks for a valid coin. This method does not verify the coin's signature.
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::Coin
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) 2001-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.