1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! # enigma-tools-u 
//! This is the Enigma protocol utility crate. 
//! The u stands for untrusted because it includes untrusted SGX functions. 
#![crate_type = "lib"]

#[macro_use]
extern crate failure;
extern crate reqwest;
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
extern crate serde;
extern crate rlp;
extern crate libc;
extern crate tiny_keccak;
extern crate base64;
extern crate openssl;
extern crate rustc_hex as hex;
// webv3 utils
extern crate web3;
// SGX Libraries
extern crate sgx_types;
extern crate sgx_urts;

pub mod attestation_service;
pub mod common_u;
pub mod web3_utils;
pub mod esgx;

use sgx_types::*;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}