2
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/mkproof synced 2024-04-28 04:45:02 +02:00
mkproof/doc/checkproof.scd
Tom Lebreux 7de01c930f Return 1 for invalid proof, 2 for usage errors
This makes it easier to detect if the input proof is valid or if there
was another error (eg: badly formatted challenge, etc)
2020-12-06 12:17:10 -05:00

18 lines
446 B
Markdown

checkproof(1)
# NAME
*checkproof* - verify a proof-of-work challenge
# SYNOPSIS
*checkproof* _challenge_ _proof_
# DESCRIPTION
*checkproof* verifies a proof-of-work challenge which has been completed by
*mkproof*(1). The result will be printed to stdout. If valid, *checkproof* will
exit with a zero status code. If the proof is invalid, it will exit with a
status code of 1. If any other usage error, it will exit with a status code of
2.