Giter Site home page Giter Site logo

speranza's Introduction

Speranza

Experiments for Speranza, a system for private-but-usable package signing.

Overview

The repository contains:

  • a Rust library implementing:
    • Pedersen commitments (src/commitments/pedersen.rs)
    • a Merkle binary prefix tree (src/maps/merkle_bpt.rs)
    • a signing system
  • Code for reproducing the results and graphs from the paper:
    • benches/ contains a benchmark
    • make_graphs.py generates graphs.

Requirements

Requirements:

  • Rust toolchain (we used the version described in rust-toolchain.toml) including the package manager/build tool cargo.
  • cargo-criterion (run cargo install cargo-criterion).
  • Python 3 with seaborn (and its dependencies) installed for generating figures.

The easiest way to reproduce will be to use Nix: the project is described in a flake.nix file. Running nix develop on a recent version of Nix will install build and development dependencies.

Reproducing results and figures

First, make sure the project builds and tests pass:

$ cargo test

This will download and install all dependencies.

Now, collect the data:

$ cargo run --bin sizes > sizes.csv
$ cargo criterion --message-format=json > data.json

This shouldn't take more than an hour or so. If the above doesn't work, our data is checked into the repo.

Now, generate the plots:

$ python make_graphs.py

The figures will be in the figures/ directory.

speranza's People

Contributors

znewman01 avatar

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.