Coder Social home page Coder Social logo

blender-contract's Introduction

Blender Contract Demo

Introduction

This repository shows how to use Phala Fat Contract to invoke unmodified x86 program and do complicated computation. Leveraging the Trust Execution Environment (TEE) and end-to-end encryption, users' models and rendering results will not be leaked.

It contains three components:

  • blender-server: Unmodified Blender 2.8.2 wrapped by a Python HTTP server, as the rendering server. The blender-server is supposed to be executed inside the TEE (in this case, Intel SGX), so the model and the final image/video are confidential. This program is powered by the Gramine project.

  • fat-client: A Phala Fat Contract to communicate with the rendering server through its unique HTTP request capability. The contract is executed inside Phala's Secure Worker that is powered by TEE, so its input and state are kept secret.

    It is worth noting that HTTPS should be used in production environment for end-to-end encryption of all the traffic between client and server. A promising solution is the RA-TLS from Gramine.

    In this case, users directly upload their model through the confidential contract Query, and the contract will connect to the server for the rendering and report the result. All these operations happen off-chain, thus with no latency from on-chain block production.

  • js-sdk: A frontend to operate the contract. It does all the encryption tasks (like the end-to-end encryption of the Query) for users to protect privacy.

blender-contract's People

Contributors

shelvenzhou avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.