https://github.com/lynn9388/pox
Some simple PoX implementations.
https://github.com/lynn9388/pox
golang pow pox proof-of-work
Last synced: 5 months ago
JSON representation
Some simple PoX implementations.
- Host: GitHub
- URL: https://github.com/lynn9388/pox
- Owner: lynn9388
- License: apache-2.0
- Created: 2018-09-06T18:29:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T07:39:54.000Z (over 7 years ago)
- Last Synced: 2023-07-27T22:19:57.834Z (almost 3 years ago)
- Topics: golang, pow, pox, proof-of-work
- Language: Go
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoX
[](https://goreportcard.com/report/github.com/lynn9388/pox)
[](https://travis-ci.com/lynn9388/pox)
Some simple PoX implementations.
## PoW
[](https://godoc.org/github.com/lynn9388/pox/pow)
### Example
```go
pow := NewPoW([]byte("lynn9388"), 10, 0)
pow.Compute()
if !pow.IsValid() {
fmt.Println("PoW is not valid.")
}
```