NAME
Crypt::HashCash::Coin - HashCash digital cash coin
VERSION
$Revision: 1.119 $
$Date: Sun Jun 11 21:21:31 PDT 2017 $
SYNOPSIS
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;
DESCRIPTION
This class provides methods to serialize, deserialize and check the validity of HashCash coins.
METHODS
as_string
Serializes the coin and returns a string representation of it.
from_string
Creates and returns a Crypt::HashCash::Coin object from the string provided as the only argument.
from_hex
as_hex
is_valid
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.
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::Coin
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) 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.