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