NAME

Crypt::HashCash::Coin - HashCash Digital Cash Coin

VERSION

$Revision: 1.130 $
$Date: Sat Dec 22 18:42:26 PST 2018 $

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.

SEE ALSO

http://www.hashcash.com

Crypt::HashCash

Crypt::HashCash::Mint

Crypt::HashCash::Client

Crypt::HashCash::Vault::Bitcoin

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::Coin

You can also look for information at:

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.