OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new repo
[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
}