From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58597 Path: main.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: hashcash Date: Sun, 26 Sep 2004 17:30:58 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Sender: ding-owner@lists.math.uh.edu Message-ID: <87d609jbd9.fsf@koldfront.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1096212708 26627 80.91.229.6 (26 Sep 2004 15:31:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2004 15:31:48 +0000 (UTC) Original-X-From: ding-owner+M7135@lists.math.uh.edu Sun Sep 26 17:31:34 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CBazt-0006oO-00 for ; Sun, 26 Sep 2004 17:31:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CBaza-0005yj-00; Sun, 26 Sep 2004 10:31:14 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CBazW-0005ye-00 for ding@lists.math.uh.edu; Sun, 26 Sep 2004 10:31:10 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CBazW-0000aX-A5 for ding@lists.math.uh.edu; Sun, 26 Sep 2004 10:31:10 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id E23EE3A0214 for ; Sun, 26 Sep 2004 10:31:06 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CBazQ-0004Rm-00 for ; Sun, 26 Sep 2004 17:31:04 +0200 Original-Received: from 0x50a5b872.bynxx12.adsl-dhcp.tele.dk ([80.165.184.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Sep 2004 17:31:04 +0200 Original-Received: from asjo by 0x50a5b872.bynxx12.adsl-dhcp.tele.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Sep 2004 17:31:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 56 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 0x50a5b872.bynxx12.adsl-dhcp.tele.dk X-Face: &DfBw60^ZxI8hd?J%t&_8wW?SLF%BBx<2XQ+sXYpX!?{=0C?9D{Nc`;Eq<0d=-L User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:3tDXYc79LTdnKx05n053ntMwriE= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58597 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58597 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? =46rom 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) --=20 "This is either madness... or brilliance." Adam Sj=F8gren "It's remarkable how often those two traits coincide." asjo@koldfront.dk