Haven
August 6, 2019 ยท View on GitHub
Hello world level demo, work in progress
Requirements
- Ubuntu 18.04
- Intel SGX driver 2.5
- Intel SGX SDK 2.5
- Rust nightly 2019-05-22
Installation
- Clone the repo
git submodule initgit submodule updatemake- make sure put
spid.txtandkey.txtintobin/, the SPID must be linkable cd bin./app
API endpoints
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"
}
}