go-mockid/vendor/git.rootprojects.org/root/hashcash
AJ ONeal 23822cdf09 wip: ready new-account for email and google verification 2020-08-20 06:06:13 +00:00
..
.gitignore wip: ready new-account for email and google verification 2020-08-20 06:06:13 +00:00
LICENSE wip: ready new-account for email and google verification 2020-08-20 06:06:13 +00:00
README.md wip: ready new-account for email and google verification 2020-08-20 06:06:13 +00:00
go.mod wip: ready new-account for email and google verification 2020-08-20 06:06:13 +00:00
hashcash.go wip: ready new-account for email and google verification 2020-08-20 06:06:13 +00:00

README.md

hashcash

HTTP Hashcash implemented in Go.

Explanation at https://therootcompany.com/blog/http-hashcash/

Go docs at https://godoc.org/git.rootprojects.org/root/hashcash

CLI Usage

Install:

go get git.rootprojects.org/root/hashcash/cmd/hashcash

Usage:

Usage:
	hashcash new [subject *] [expires in 5m] [difficulty 10]
	hashcash parse <hashcash>
	hashcash solve <hashcash>
	hashcash verify <hashcash> [subject *]

Example:

my_hc=$(hashcash new)
echo New: $my_hc
hashcash parse "$my_hc"
echo ""

my_hc=$(hashcash solve "$my_hc")
echo Solved: $my_hc
hashcash parse "$my_hc"
echo ""

hashcash verify "$my_hc"