Sign inSign up

bakoushin/poh-validator-hcaptcha

By bakoushin

•Updated over 4 years ago

Proof-of-Humanity hCaptcha Validator API

Image
0

360

bakoushin/poh-validator-hcaptcha repository overview

⁠Proof-of-Humanity hCaptcha Validator API

Validator API exposes a single endpoint /api/v1/proof.

The endpoint takes a hex-string data to be signed, and an hCaptcha⁠ challenge token to be verified.

Once hCaptcha token validity is verified, data is included in a signed Proof-of-Humanity, which is returned along with a timestamp.

See details and examples:

Generated Proof-of-Humanity could be further verified on-chain in a smart contract.

⁠Quickstart

docker run -it \
  -p 8080:8080 \
  --env PORT=8080 \
  --env VALIDATOR_KEY=0x89c821ae8f9abcd0737f910e3de1904699df9e390a9f184f01f941e20dac8a52 \
  --env HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000 \
  bakoushin/poh-validator-hcaptcha
⁠Environment variables
Env. variableDescriptionExample
PORTPort to run on8080
VALIDATOR_KEYPrivate key to sign proofs0x89c821ae8f9abcd0737f910e3de1904699df9e390a9f184f01f941e20dac8a52
HCAPTCHA_SECREThCaptcha account secret key0x0000000000000000000000000000000000000000

Tag summary

Content type

Image

Digest

Size

48 MB

Last updated

over 4 years ago

docker pull bakoushin/poh-validator-hcaptcha