Skip to content

crypto primitives and SDK to build on top of the EtF protocol.

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE-GPL3
Notifications You must be signed in to change notification settings

ideal-lab5/etf-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

etf-sdk

This is an SDK to build protocols on top of the EtF network. Specifically, it contains cryptographic primitives used by the etf network, as well as implements timelock encryption via AES-GCM with SSS, where shares are encrypted for futures slots using IBE. It is wasm-compilable and so able to be called from both rust and javascript contexts.

It consists of two packages:

  • etf-crypto-primitives contains implementations in arkworks
    • contains README with instructions on setting up Linux environment
  • etf-sdk is an API to expose timelock encryption and DLEQ proof verification, and make compilable to wasm

⚠️ This library is a WIP and should not be considered safe for production use.

Setup

This code is only guaranteed to work in Linux environments. If you have a windows OS, use WSL and install Ubuntu.

Install rust and build-essentials:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"
sudo apt-get update
sudo apt install build-essential

Testing

We aim for a minimum of 85% coverage on all lines. To check coverage, we use tarpaulin with opt-level=0:

cargo tarpaulin --rustflags="-C opt-level=0"

Benchmarks

Navigate to the etf-crypto-primitives directory and run:

cargo bench

See the benches dir for more info.

About

crypto primitives and SDK to build on top of the EtF protocol.

Resources

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE-GPL3

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages