• Stars
    star
    271
  • Rank 151,717 (Top 3 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created about 5 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Sphinx implementation in Rust

Sphinx

A Sphinx packet implementation in Rust.

License Build Status codecov

Prerequisites

Testing

cargo test will run the unit and integration tests.

Code coverage reporting

If you want to find out how you're doing in terms of code coverage, install docker and then run the code coverage shell script at ./scripts/coverage_report.sh. Docker will download all the dependencies (get a coffee!), and output an HTML code coverage report at coverage/tarpaulin-report.html. Open the generated file in your browser to check coverage.

Unit + integration test coverage is currently well above 90%, please ensure that any pull requests maintain good test coverage.

Benchmarks

To run benchmarks, use:

cargo bench

Rust benchmarks run the operation multiple times to give a consistent output and report back in the number of nanoseconds (billionths of a second) per iteration. 1000000000 / result gives you the number of operations per second.

For later reference, on Dave's i7 Dell XPS-13 (2018) laptop (our test reference machine :)) output is as follows.

test tests::bench_new     ... bench:     386.348 us/iter
test tests::bench_process ... bench:     157.322 us/iter
  • 1000000 / 386.348 = ~2588 packet creations per second
  • 1000000 / 157.322 = ~6356 packet unwrappings per second

More Repositories

1

nym

Nym provides strong network-level privacy against sophisticated end-to-end attackers, and anonymous transactions using blinded, re-randomizable, decentralized credentials.
Rust
1,265
star
2

developer-tutorials

Repo storing the finished code for Nym Developer Tutorials
Rust
192
star
3

nyxd

Fork of https://github.com/CosmWasm/wasmd for Nyx validators
Go
180
star
4

CensorshipMeasurements

Censorship tests for the Nym network
Go
146
star
5

tauri_lib

tauri lib poc
TypeScript
90
star
6

ephemera

Rust
83
star
7

bdjuno

A fork of https://github.com/forbole/bdjuno for the Nyx blockchain
Go
77
star
8

ci-playground

A playground for testing CI/CD jobs with GitHub Actions
56
star
9

docs

Nym Mixnet Software Docs built with mdBook
CSS
50
star
10

nym-vpn-client

The NymVPN client apps for desktop and mobile
Swift
49
star
11

coconut

Implementations of the Coconut signing scheme, cross-compatible between Rust and Go.
Go
30
star
12

nym-mixnet

[Note: Deprecated!] Anonymous packet-based messaging using mix networks, based on Loopix and Sphinx
Go
27
star
13

helios-nym

An experimental fork of a16z's Helios Ethereum client which can run its network traffic over the Nym mixnet
Rust
19
star
14

rewardsharing-simulator

A simulator for the reward mechanism of the Nym network.
Python
14
star
15

nym-metrics-server

A metrics server showing mixnode mixing performance in near-realtime.
Go
13
star
16

node-status-api

An API to track uptime for Nym nodes
Go
13
star
17

dev-portal

Developer Portal mdbook content
CSS
11
star
18

nym-web-dashboard

Web dashboard showing an overview of Nym network functioning
HTML
9
star
19

fdroid

F-Droid repository for Nym apps.
Go
9
star
20

nym-vpn-android

The NymVPN client app for Android
Kotlin
8
star
21

bity-interface

Nym exchange interface
CSS
8
star
22

sphinx-bench

Quick benchmark (perf) scripts for our Sphinx implementation
Rust
8
star
23

demo-mixnet-electron-chat

Shows you how to use the Nym mixnet from any language using network sockets
TypeScript
8
star
24

service-grants

Application repository for Nym service grants
7
star
25

network-requester-connectivity-check

A script to check the daily connection uptime for NymConnect network requesters
JavaScript
7
star
26

qt-validator-client-demo

A primitivist QT client that can exercise the Nym validators
QML
6
star
27

demo-mixnet-chat-client

A simple chat client which sends its traffic through the nym-mixnet.
Go
6
star
28

cosmwasm-state-testing

A set of utility mocks for operating on cosmwasm contract state dumps
6
star
29

ledger-covid-passport

Private COVID Certificate (PCC) - A Coconut Prototype
TypeScript
6
star
30

team-triage

This repo holds issues that are used to triage problems raised in our social channels. It has no code in it, only issues.
4
star
31

odoo-crypto-addons

Python
4
star
32

nym-zcash-grpc-demo

An initial demo of interacting with a lightwalletd node via gRPC over the Nym mixnet.
Rust
1
star
33

nym-vpn-mullvad-libs

Rust
1
star