This is Lyra2REv2 library used in Monacoin and some other altcoins. Lyra2Rev2 uses bmw hash, cubehash,lyra2, which are also included in this library.
This requires
- git
- go 1.3+
$ go get github.com/bitgoin/lyra2rev2
(This example omits error handlings for simplicity.)
import "github.com/bitgoin/lyra2rev2"
func main(){
data := []byte{0x01,0x02}
result, err := lyra2rev2.Sum(data)
...
}
Improvements to the codebase and pull requests are encouraged.