status-go/vendor/github.com/anacrolix/dht/v2/bep44/target.go

12 lines
182 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package bep44
import (
"crypto/sha1"
)
type Target = [sha1.Size]byte
func MakeMutableTarget(pubKey [32]byte, salt []byte) Target {
return sha1.Sum(append(pubKey[:], salt...))
}