Crypt::HashCash::Coin - HashCash Digital Cash Coin
$Revision: 1.130 $ $Date: Sat Dec 22 18:42:26 PST 2018 $
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) 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.
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.