OSDN Git Service

Hulk did something
[bytom/vapor.git] / mining / tensority / go_algorithm / algorithm.go
1 package go_algorithm
2
3 import (
4         "github.com/vapor/protocol/bc"
5 )
6
7 func LegacyAlgorithm(bh, seed *bc.Hash) *bc.Hash {
8         cache := calcSeedCache(seed.Bytes())
9         data := mulMatrix(bh.Bytes(), cache)
10         return hashMatrix(data)
11 }