2
0
mirror of synced 2025-02-24 14:48:27 +00:00
torrent/metainfo/hash.go

17 lines
313 B
Go
Raw Normal View History

package metainfo
2016-05-02 11:21:03 +10:00
import (
"github.com/anacrolix/torrent/types/infohash"
2016-05-02 11:21:03 +10: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 21:34:20 +10:00
var (
NewHashFromHex = infohash.FromHexString
HashBytes = infohash.HashBytes
)