citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 24f9bfeb0358c1d35f007e1516f6f4b89bd31e2d
parent 8f0448f1467b929de83681a3a35b72a5d7257047
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 23 Apr 2021 12:08:30 -0700

bin: add hashcash-check

simple hashcash checker

Diffstat:
Abin/hashcash-check | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/bin/hashcash-check b/bin/hashcash-check @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +hash=$1 +bits=$(cut -d: -f2 <<<"$hash") +resource=$(cut -d: -f4 <<<"$hash") + +hashcash -cdb $bits -r $resource $hash