-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathLICENSE
More file actions
41 lines (32 loc) · 1.23 KB
/
LICENSE
File metadata and controls
41 lines (32 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Queue-it Proof-of-Work
[](https://pkg.go.dev/github.com/etaaa/Queue-it-Proof-of-Work)
[](https://goreportcard.com/report/github.com/etaaa/Queue-it-Proof-of-Work)
A Golang solution for Queue-it's Proof-of-Work challenge (<https://queue-it.com/blog/proof-of-work-block-bad-bots/>).
## Usage
Install:
```bash
go get github.com/etaaa/Queue-it-Proof-of-Work
```
Usage:
```bash
package main
import (
"fmt"
pow "github.com/etaaa/Queue-it-Proof-of-Work"
)
func main() {
/* GET THESE VALUES FROM THE RESPONSE WHEN FETCHING
THE CHALLENGE AT .../challengeapi/pow/challenge/... */
input := "f02b931c-52f0-4507-9406-f1221678dc16"
zeroCount := 2
// RETURNS THE CHALLENGE SOLUTION
solution := pow.SolveChallenge(input, zeroCount)
fmt.Println(solution)
}
```
## Questions
For any questions feel free to add and DM me on Discord (eta#0001).
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)