https://github.com/etaaa/queue-it-proof-of-work
A Golang solution for Queue-it's Proof-of-Work challenge
https://github.com/etaaa/queue-it-proof-of-work
go golang proof-of-work queueit
Last synced: 6 months ago
JSON representation
A Golang solution for Queue-it's Proof-of-Work challenge
- Host: GitHub
- URL: https://github.com/etaaa/queue-it-proof-of-work
- Owner: etaaa
- License: mit
- Created: 2021-08-09T22:56:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-04T16:27:24.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T18:36:41.703Z (over 1 year ago)
- Topics: go, golang, proof-of-work, queueit
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 33
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 ().
## Usage
Install:
```bash
go get github.com/etaaa/Queue-it-Proof-of-Work
```
Usage:
```go
package mainimport (
"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
// Proof of Work challenge solution
solution := pow.SolveChallenge(input, zeroCount)
fmt.Println(solution)
}
```## Questions
For any questions feel free to add and DM me on Discord (eta#1656).## 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/)