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

libra-china-org/sgx-token-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A PoC of Intel SGX based token contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published