Skip to content
A PoC of Intel SGX based token contract
Rust Makefile
Branch: master
Clone or download
Latest commit 423a79a Aug 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app first commit Aug 6, 2019
bin first commit Aug 6, 2019
enclave first commit Aug 6, 2019
lib first commit Aug 6, 2019
rust-sgx-sdk @ bc2d7e2 first commit Aug 6, 2019
.gitignore first commit Aug 6, 2019
.gitmodules first commit Aug 6, 2019
MIT-LICENSE first commit Aug 6, 2019
Makefile first commit Aug 6, 2019
Readme.md first commit Aug 6, 2019

Readme.md

Haven

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 init
  • git submodule update
  • make
  • make sure put spid.txt and key.txt into bin/, 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"
  }
}
You can’t perform that action at this time.