Giter Club home page Giter Club logo

tracing's Introduction

Tracing in E2EE Messaging

Rust implementation of message tracing for E2E encrypted messaging

CCS 2019: Nirvan Tyagi, Ian Miers, Thomas Ristenpart. Traceback for End-to-End Encrypted Messaging. CCS 2019.

ePrint: Nirvan Tyagi, Ian Miers, Thomas Ristenpart. Traceback for End-to-End Encrypted Messaging. Cryptology ePrint Archive, Report 2019/981. http://eprint.iacr.org/2019/981. 2019.

Overview

This repository is organized as a Rust workspace including two crates.

  • tracing: Rust library that provides client and server algorithms for path and tree traceback
  • tracing-server: Rust binary that provides a server implementation to process messages and perform traceback.

Installation/Build

The server binary compiles on the nightly toolchain of the Rust compiler, while the library can compile on stable. Since both packages will work with nightly, we will describe the installation with nightly. Install the latest version of Rust using rustup by following the instructions here. Then, install the Rust nightly toolchain:

rustup install nightly

Clone the repository:

git clone https://github.com/nirvantyagi/tracing.git
cd tracing/

Either set your default Rust toolchain to nightly or create a directory specific override for tracing/:

rustup default nightly
rustup override set nightly

Build using cargo:

cargo build

Tests and Benchmarks

The tracing library comes with a suite of tests and benchmarks for the path and tree traceback protocol implementations. To run the tests, unfortunately, you must first spin up a Redis instance. Install Redis by following the instructions here. In a separate terminal, start a Redis server listening on port 6379 (default configuration).

redis-server

Due to tests clearing the Redis database after their execution, the tests must be run sequentially as follows where cargo test runs all tests and benchmarks and cargo bench runs only benchmarks:

cargo test -p tracing -- --test-threads=1
cargo bench -p tracing -- --test-threads=1

tracing's People

Contributors

nirvantyagi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

tracing's Issues

Sequential testing required

By using a shared redis db resource, cleaning out the db after every test causes parallel tests to fail.

Must run tests as:
cargo test -p tracing -- --test-threads=1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.