DiagnosticsOverviewNew · 0.744
getprotohash
Identify a function by a diagnostic fingerprint.
Details#
Returns a 16-character hexadecimal fingerprint of a function prototype. For Luau it summarizes compiled code and selected metadata, not captured values or every constant value. For native functions it is session-dependent. It is not a cryptographic integrity proof.
Examples#
Example
local function f() return 42 end
local hash = getprotohash(f)
print(hash, #hash) -- length 16