19 lines
438 B
Go
Raw Normal View History

2021-11-08 16:39:17 +00:00
package pow
//import "crypto/sha256"
import "github.com/deroproject/derohe/cryptography/crypto"
import "github.com/deroproject/derohe/astrobwt"
// patch algorithm in here to conduct various tests
func Pow(input []byte) (output crypto.Hash) {
//return SimplePow(input)
return astrobwt.POW16(input)
}
// replace with a different pow
/*
func SimplePow(input []byte) (output crypto.Hash) {
return crypto.Hash(sha256.Sum256(input))
}
*/