hash.go 313 B

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