github.com/anacrolix/torrent@v1.61.0/metainfo/hash.go (about)

     1  package metainfo
     2  
     3  import (
     4  	"github.com/anacrolix/torrent/types/infohash"
     5  )
     6  
     7  // This type has been moved to allow avoiding importing everything in metainfo to get at it.
     8  
     9  const HashSize = infohash.Size
    10  
    11  type Hash = infohash.T
    12  
    13  var (
    14  	NewHashFromHex = infohash.FromHexString
    15  	HashBytes      = infohash.HashBytes
    16  )