2016-04-04 11:48:39 +08:00
|
|
|
package metainfo
|
|
|
|
|
2016-05-02 09:21:03 +08:00
|
|
|
import (
|
2022-11-02 20:03:25 +08:00
|
|
|
"github.com/anacrolix/torrent/types/infohash"
|
2016-05-02 09:21:03 +08:00
|
|
|
)
|
2016-04-04 11:48:39 +08:00
|
|
|
|
2022-11-02 20:03:25 +08:00
|
|
|
// This type has been moved to allow avoiding importing everything in metainfo to get at it.
|
2017-12-29 09:17:58 +08:00
|
|
|
|
2022-11-02 20:03:25 +08:00
|
|
|
const HashSize = infohash.Size
|
2016-04-04 11:48:39 +08:00
|
|
|
|
2022-11-02 20:03:25 +08:00
|
|
|
type Hash = infohash.T
|
2016-05-03 19:34:20 +08:00
|
|
|
|
2021-01-22 06:49:51 +08:00
|
|
|
var (
|
2022-11-02 20:03:25 +08:00
|
|
|
NewHashFromHex = infohash.FromHexString
|
|
|
|
HashBytes = infohash.HashBytes
|
2021-01-22 06:49:51 +08:00
|
|
|
)
|