PHP code example of thefox / hashcash
1. Go to this page and download the library: Download thefox/hashcash library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thefox / hashcash example snippets
heFox\Pow\Hashcash;
$stamp = Hashcash::newInstance(20, '[email protected]')->mint();
print "hashcash stamp: '".$stamp."'\n";
heFox\Pow\Hashcash;
$hashcash = new Hashcash(20, '[email protected]');
print "hashcash stamp: '".$hashcash->mint()."'\n";