Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PoW based faucet #959

Closed
adrianbrink opened this issue Dec 23, 2022 · 0 comments · Fixed by #969
Closed

Implement PoW based faucet #959

adrianbrink opened this issue Dec 23, 2022 · 0 comments · Fixed by #969
Assignees

Comments

@adrianbrink
Copy link
Member

  • generate public key
  • brute-force a nonce
  • hash nonce and public key until you have something with a couple of leading zeros
  • faucet tx takes pk + nonce - faucet vp verifies that pow is valid
  • faucet vp stores a mapping from pk to [nonces] - enforces that every pk can only ever submit a PoW puzzle once
This was referenced Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants