[hashcash] Re: python hashcash status (Re: hashcash v1 support)

  • From: Jonathan Morton <chromi@xxxxxxxxxxxxxxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Thu, 12 Aug 2004 14:19:11 +0100

I apologize for not paying attention. Is this backward compatible or not with the previous version of the stamp?

Both v0 and v1 stamps can (crudely) have their value checked by running through sha1 and counting leading zero bits, then verifying against a double-spend database. If that's all an old implementation does, it'll work fine with v1 stamps, though it will begin to miss a larger proportion of technically invalid stamps.


The v1 format also includes an intended bit count, which displaces the date and address fields, so if v0 code checks these, it will definitely choke on a v1 stamp.

--------------------------------------------------------------
from:     Jonathan "Chromatix" Morton
mail:     chromi@xxxxxxxxxxxxxxxxxxxxx
website:  http://www.chromatix.uklinux.net/
tagline:  The key to knowledge is not to rely on people to teach you it.


Other related posts: