summaryrefslogtreecommitdiff
path: root/doc/client_lua_api.md
diff options
context:
space:
mode:
authorRob Blanckaert <basicer@basicer.com>2017-10-30 00:18:18 -0700
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-10-30 08:18:18 +0100
commit65c5539035139428ee8354d7c96565fc392112d2 (patch)
tree4cb72b11baba0f9533d59196353abee6a2734736 /doc/client_lua_api.md
parenta95e0d18762c8182a3c2ba074b5961d5c00a90a4 (diff)
downloadminetest-65c5539035139428ee8354d7c96565fc392112d2.tar.gz
minetest-65c5539035139428ee8354d7c96565fc392112d2.tar.bz2
minetest-65c5539035139428ee8354d7c96565fc392112d2.zip
Add sha1 to lua utils. (#6563)
Diffstat (limited to 'doc/client_lua_api.md')
-rw-r--r--doc/client_lua_api.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md
index d8e2da69c..3655cf235 100644
--- a/doc/client_lua_api.md
+++ b/doc/client_lua_api.md
@@ -630,6 +630,9 @@ Minetest namespace reference
version entirely. To check for the presence of engine features, test
whether the functions exported by the wanted features exist. For example:
`if minetest.check_for_falling then ... end`.
+* `minetest.sha1(data, [raw])`: returns the sha1 hash of data
+ * `data`: string of data to hash
+ * `raw`: return raw bytes instead of hex digits, default: false
### Logging
* `minetest.debug(...)`