FedP2P/metainfo/hash.go

17 lines
313 B
Go
Raw Permalink Normal View History

package metainfo
2016-05-02 09:21:03 +08:00
import (
"github.com/anacrolix/torrent/types/infohash"
2016-05-02 09:21:03 +08:00
)
// This type has been moved to allow avoiding importing everything in metainfo to get at it.
const HashSize = infohash.Size
type Hash = infohash.T
2016-05-03 19:34:20 +08:00
var (
NewHashFromHex = infohash.FromHexString
HashBytes = infohash.HashBytes
)