2
0
mirror of synced 2025-02-23 06:08:07 +00:00
torrent/metainfo/hash.go
Matt Joiner 5501f994ca
Move a bunch of stuff into subpackages
The core package is very large now, and often only parts of it are needed.
2022-11-15 23:31:26 +11:00

17 lines
313 B
Go

package metainfo
import (
"github.com/anacrolix/torrent/types/infohash"
)
// This type has been moved to allow avoiding importing everything in metainfo to get at it.
const HashSize = infohash.Size
type Hash = infohash.T
var (
NewHashFromHex = infohash.FromHexString
HashBytes = infohash.HashBytes
)