Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Latest commit

 

History

History
87 lines (71 loc) · 913 Bytes

Readme.md

File metadata and controls

87 lines (71 loc) · 913 Bytes

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"
  }
}