Gnus development mailing list
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
Subject: hashcash
Date: Sun, 26 Sep 2004 17:30:58 +0200	[thread overview]
Message-ID: <87d609jbd9.fsf@koldfront.dk> (raw)

I just turned hashcash-stuff on in Gnus (one of my friends started
using it).

In spam.el I noticed this:

 ;; TODO: does anyone use hashcash?  We should remove it if not.

so, my answer to that question is "Yes".


It looks like generating a hashcash works well - the SpamAssasin in
the other end recognizes the postage.


I'm not sure that the checking of a hashcash in contrib/hashcash.el
does - can anyone confirm/deny this?

From stepping through hashcash-verify-payment, I think the included
patch is needed.

(An example: the token:
"1:20:040926:asjo@koldfront.dk::e9a9d8c29f7c1806:ea6e" is split on
":", and the key should be my email-adresse (number 3, zero-indexed
counting, not number 2) - hashcash.el seems to not know about the
bit-field ('20' in the example)...)

Someone who know this better should probably say whether it's okay...
it would probably be better to fix hashcash-version if the version 1.2
that is referred to in hashcash.el is in use (hashcash.org doesn't
mention that format).


*** hashcash.el	21 May 2004 00:16:54 -0000	7.3
--- hashcash.el	26 Sep 2004 15:16:15 -0000
***************
*** 137,143 ****
    "Verify a hashcash payment"
    (let ((key (if (< (hashcash-version token) 1.2)
  		 (nth 1 (split-string token ":"))
! 		 (nth 2 (split-string token ":")))))
      (cond ((null resource)
  	   (let ((elt (assoc key hashcash-accept-resources)))
  	     (and elt (hashcash-check-payment token (car elt)
--- 137,143 ----
    "Verify a hashcash payment"
    (let ((key (if (< (hashcash-version token) 1.2)
  		 (nth 1 (split-string token ":"))
! 		 (nth 3 (split-string token ":")))))
      (cond ((null resource)
  	   (let ((elt (assoc key hashcash-accept-resources)))
  	     (and elt (hashcash-check-payment token (car elt)


-- 
 "This is either madness... or brilliance."                   Adam Sjøgren
 "It's remarkable how often those two traits coincide."  asjo@koldfront.dk




             reply	other threads:[~2004-09-26 15:30 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-26 15:30 Adam Sjøgren [this message]
2004-09-26 17:36 ` hashcash Simon Josefsson
2004-09-26 20:59   ` hashcash Adam Sjøgren
2004-09-27  2:03     ` hashcash Paul Foley
2004-09-27 14:32       ` hashcash Simon Josefsson
2004-09-27 14:46         ` hashcash Adam Sjøgren
2004-09-29 14:37         ` hashcash Dan Christensen
2004-09-29 14:40           ` hashcash Ted Zlatanov
2004-09-29 19:11             ` hashcash Dan Christensen
2004-09-29 21:08               ` hashcash Magnus Henoch
2004-09-30 14:30                 ` hashcash Ted Zlatanov
2004-09-30 20:42                   ` hashcash Magnus Henoch
2004-09-27 14:45       ` hashcash Adam Sjøgren
2004-09-27 15:21         ` hashcash Simon Josefsson
2004-09-27 15:38           ` hashcash Adam Sjøgren
2004-09-27 17:13             ` hashcash Jesper Harder
2004-09-27 19:02               ` hashcash Adam Sjøgren
2004-09-27 19:38                 ` hashcash Simon Josefsson
2004-09-27 19:54                   ` hashcash Adam Sjøgren
2004-09-27 19:56                   ` hashcash Jesper Harder
2004-09-27 20:50                     ` hashcash Simon Josefsson
2004-09-28 14:08         ` hashcash Ted Zlatanov
2004-09-28 14:49           ` hashcash Simon Josefsson
2004-09-28 17:41             ` hashcash Ted Zlatanov
2004-09-30 20:50               ` hashcash Simon Josefsson
2004-10-04 17:06                 ` hashcash Ted Zlatanov
2004-10-04 19:36                   ` hashcash Simon Josefsson
2004-10-05  2:34                     ` hashcash Dan Christensen
2004-10-06 15:17                     ` hashcash Ted Zlatanov
2004-09-27 16:10 ` hashcash Ted Zlatanov
  -- strict thread matches above, loose matches on Subject: below --
2002-07-31 19:24 new spam functionality added Ted Zlatanov
2002-07-31 20:14 ` Simon Josefsson
2002-07-31 20:25   ` Josh Huber
2002-07-31 20:34     ` Scott A Crosby
2002-07-31 20:41       ` Josh Huber
2002-07-31 21:07         ` Scott A Crosby
2002-08-02  2:05           ` Jason R. Mastaler
2002-08-02  3:43             ` Russ Allbery
2002-08-02  4:29               ` Jason R. Mastaler
2002-08-02  4:34                 ` Russ Allbery
2002-08-02 16:17                   ` TMDA (was: new spam functionality added) Paul Jarc
2002-08-05 17:38                     ` Per Abrahamsen
2002-08-05 17:49                       ` Paul Jarc
2002-08-05 17:57                         ` Simon Josefsson
2002-08-05 20:18                           ` David Masterson
2002-08-05 20:46                             ` Stainless Steel Rat
2002-08-06  3:04                               ` David Masterson
2002-08-06 14:27                                 ` Stainless Steel Rat
2002-08-06 17:13                                   ` David Masterson
2002-08-06 17:26                                     ` David Masterson
2002-08-06 18:08                                       ` Stainless Steel Rat
2002-08-07 12:02                                         ` Lloyd Zusman
2002-12-30  0:22                                           ` Hashcash (was: TMDA) Lars Magne Ingebrigtsen
2003-01-02 18:33                                             ` Hashcash Simon Josefsson
2003-01-02 19:25                                               ` Hashcash Lars Magne Ingebrigtsen
2003-01-02 21:01                                                 ` Hashcash Simon Josefsson
2003-01-02 21:05                                                   ` Hashcash Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d609jbd9.fsf@koldfront.dk \
    --to=asjo@koldfront.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).