Comments (3)
enclave-source.js
is your source file you are trying to bundle into the SGX enclave. This is an example name. Maybe documentation is unclear.
Also, that is only needed if you are using imports in your code. Then this is how you can use browserify to bundle everything together into one file.
But you can also just use one simple file. Tests are doing that, for example. Adding tests.js
and test-commands.js
into the enclave and then running it.
You can see example here as well.
from node-secureworker.
Also, this project is not production ready. So feel free to make any PRs with improvements, both to documentation and code.
from node-secureworker.
OK, so if I followed the example and generated the .so file using:
secureworker-create --output enclave.so tests.js test-commands.js
then to be able to start the enclave should I add the line:
const worker = new SecureWorker('enclave.so', 'enclave-bundle.js');
to run.js file in the tests directory?or where should I add it exactly?
from node-secureworker.
Related Issues (19)
- meteor paths hardcoded HOT 2
- Port changes to original duktape source
- problems installing: No rule to make target 'node_modules/promise-polyfill/promise.js' HOT 3
- Additional packages required for bundling imports with browserify HOT 1
- Secureworker-create does not work HOT 2
- Consider switching duktape with QuickJS
- Enclaves won't build in new versions of Node.js
- command line length limit HOT 1
- Implement SecureWorker.getSGXVersion()
- Create CLI installer
- Can't build an enclave.so file due to missing import sgx_tae_service in duk_enclave file HOT 1
- Unable to run in simulation mode, only mock mode
- Make repository smaller HOT 1
- Implement quote command inside enclave HOT 1
- Implement report and remote attestation commands outside enclave HOT 2
- Prebuild binaries for platforms and publish the package
- Mock implementation should probably be all moved to this repository
- Document use and compilation with Linux SDK HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-secureworker.