Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/EverythingSuckz/TG-FileStreamBot
/ GetShortHash
Function
GetShortHash
internal/utils/hashing.go:12–14 ·
view source on GitHub ↗
(fullHash string)
Source
from the content-addressed store, hash-verified
10
}
11
12
func
GetShortHash(fullHash string) string {
13
return
fullHash[:config.ValueOf.HashLength]
14
}
15
16
func
CheckHash(inputHash string, expectedHash string) bool {
17
return
inputHash == GetShortHash(expectedHash)
Callers
2
sendLink
Function · 0.92
CheckHash
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected