github.com/0chain/gosdk@v1.17.11/mobilesdk/sdk/common.go (about) 1 //go:build mobile 2 // +build mobile 3 4 package sdk 5 6 import ( 7 "github.com/0chain/gosdk/core/encryption" 8 ) 9 10 // GetLookupHash get lookup hash with allocation id and path. 11 // Lookuphash is a hashed value of the augmentation of allocation id and remote path. 12 // It is used to identify the file in the blobbers. 13 // 14 // - allocationID : allocation id 15 // - remotePath : remote path 16 func GetLookupHash(allocationID string, remotePath string) string { 17 return encryption.Hash(allocationID + ":" + remotePath) 18 }