15 Star 98 Fork 14

百度开源/incubator-Teaclave

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
permalink
/docs/codebase/examples

Examples

In this directory, we implement some examples to illustrate how to register input/output data for a function, create and invoke a task and get execution results with the Teclave's client SDK in both single and multi-party setups.

Before trying these examples, please make sure all services in the Teaclave platform has been properly launched. Also, for examples implemented in Python, don't forget to set the PYTHONPATH to the sdk path so that the scripts can successfully import the teaclave module.

For instance, use the following command to invoke an echo function in Teaclave:

$ PYTHONPATH=../../sdk/python python3 builtin_echo.py 'Hello, Teaclave!'

Please checkout the sources of these examples to learn more about the process of invoking a function in Teaclave.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/baidu/incubator-teaclave.git
git@gitee.com:baidu/incubator-teaclave.git
baidu
incubator-teaclave
incubator-Teaclave
master

搜索帮助