Hello world level demo, work in progress
- Ubuntu 18.04
- Intel SGX driver 2.5
- Intel SGX SDK 2.5
- Rust nightly 2019-05-22
- Clone the repo
git submodule init
git submodule update
make
- make sure put
spid.txt
andkey.txt
intobin/
, the SPID must be linkable cd bin
./app
POST /register
{
"input": {},
"nonce": {
"foo": "bar"
}
}
POST /status
{
"input": {
"account": ""
},
"nonce": {
"foo": "bar"
}
}
POST /transfer
{
"input": {
"sk": "",
"to_account": "",
"quantity": 100
},
"nonce": {
"foo": "bar"
}
}
POST /dump_sessions
{
"input": {},
"nonce": {
"foo": "bar"
}
}
POST /load_sessions
{
"input": {
"data": "",
"nonce": ""
},
"nonce": {
"foo": "bar"
}
}