🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #176515

Re: Attn: Richard, Hashcash DLL

#176515
From: Thomas J. Boschloo
Date: Fri, 22 Oct 2004 20:33
55 lines
3324 bytes
-----BEGIN PGP SIGNED MESSAGE-----

Adam Back wrote:

| Yes I agree.  I sent Richard some mail.  I released an updated
| hashcash.dll providing a better interface.  See:
|
| http://www.hashcash.org/binaries/win32/hashcash.h
|
| it now has a callback mechanism to allow user cancel and progress bar
| display.
|
| Adam

Out of curriousity, how does it work?


typedef int (*hashcash_callback)(int percent, int largest, int target,
~ double count, double expected,
~ void* user);

HCEXPORT
int hashcash_mint( time_t now_time, int time_width, const char* resource,
~   unsigned bits, long anon_period, char** stamp,
~   long* anon_random, double* tries_taken, char* ext,
~   int compress, hashcash_callback cb, void* user_arg );


I assume you call hashcash_mint() with your own hashcash_callback
function specified. This function then gets called from within the
minter and the calling program can use it to abort the search, right?

Of course I am biased, but wouldn't it be simpler to simply have
hashcash_mint return after 100000 tries and return in its exit code how
many bits of the currently tested (static) token collide?

like:
while(!hashcash_mint() && !keypressed(user));
printf("X-Hashcash: %s\n", stamp[]);

High regards,
Thomas
- --
The Thraddash: "So, what's this? SNORT! An unknown alien species?"
"How wonderful! Someone new to fight!"
Full Game Win/Mac/Linux: <http://sc2.sourceforge.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQB5AwUBQXluhgEP2l8iXKAJAQEqYgMffhpED/PWlLtwsKmxQBS6IG0ssvWHS+Bm
eyJ7YSwb/X6lozjB0hBQs12LmFwxh72KgG66NYZGrfzh0vMcnXuT6n1W/y2ARXS/
b/3KrfZHIR3xc22SdNbp/iiYAqq1HTqDI8FmGQ==
=IBaU
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <41796E86.2000805@hccnet.nl.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!transit.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mail
References: <4167D26B.8070508@hccnet.nl.invalid> <200410102136.i9ALaFRg004867@skuz.net> <416AC996.9010409@hccnet.nl.invalid> <3c7e0a57.0410140129.5a9f7ca6@posting.google.com> <416EC00C.30300@hccnet.nl.invalid> <9c20fb90.0410201620.206fb095@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <41796E86.2000805@hccnet.nl.invalid>
Subject: Re: Attn: Richard, Hashcash DLL
Date: Fri, 22 Oct 2004 22:33:10 +0200
From: "Thomas J. Boschloo" <nospam@hccnet.nl.invalid>
References: <4167D26B.8070508@hccnet.nl.invalid> <200410102136.i9ALaFRg004867@skuz.net> <416AC996.9010409@hccnet.nl.invalid> <3c7e0a57.0410140129.5a9f7ca6@posting.google.com> <416EC00C.30300@hccnet.nl.invalid> <9c20fb90.0410201620.206fb095@posting.google.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!transit.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mail
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: alt.privacy.anon-server
To: Adam Back <adam@cypherspace.org>
In-Reply-To: <9c20fb90.0410201620.206fb095@posting.google.com>
X-Enigmail-Version: 0.86.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 55
Organization: HCCnet Nieuwsgebruiker
NNTP-Posting-Date: 22 Oct 2004 20:41:05 GMT
NNTP-Posting-Host: 62.251.35.25
X-Trace: 1098477665 reader2.nntp.hccnet.nl 163 62.251.35.25
X-Complaints-To: abuse@hccnet.nl