import { LuaBuiltinFunction, LuaTable } from "../runtime.ts"; import { hashSHA256 } from "../../../plug-api/lib/crypto.ts"; export const cryptoApi = new LuaTable({ sha256: new LuaBuiltinFunction( (_sf, s: string | Uint8Array): Promise => { return hashSHA256(s); }, ), });