Não pode escolher mais do que 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
AJ ONeal
1369d91375
|
há 4 anos | |
---|---|---|
cmd/hashcash | há 4 anos | |
.gitignore | há 4 anos | |
LICENSE | há 4 anos | |
README.md | há 4 anos | |
go.mod | há 4 anos | |
hashcash.go | há 4 anos | |
hashcash_test.go | há 4 anos |
README.md
hashcash
HTTP Hashcash implemented in Go.
Explanation at https://therootcompany.com/blog/http-hashcash/
Go API docs at https://pkg.go.dev/git.rootprojects.org/root/hashcash?tab=doc
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 hash <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"