MPC Relay

End-to-end encrypted relay service designed for MPC/TSS applications built using the noise protocol and websockets for the transport layer.

Getting Started

You will need the rust toolchain and a few other tools:

cargo install cargo-make cargo install wasm-pack

Server

First generate a keypair:

cargo run -- generate-keypair server.pem

Then start the server:

cargo run -- server config.toml

Documentation

cargo make doc

Tests

Generate a server key for the test specs:

cargo run -- generate-keypair tests/test.pem

Afterwards you should be able to run the tests using the native client:

cargo make test

To test the web client using webassembly, first start a test server:

cargo run -- server -b 127.0.0.1:8008 tests/config.toml

Copy the server public key and update the tests/wasm.rs file with the server public key.

Now you can run the webassembly tests:

cargo make test-wasm

License

MIT or Apache-2.0