#primitive #proof #encryption #crypto #api #verify #etf

etf-sdk

An API for calling etf crypto primitives for encryption and proof verification

1 unstable release

0.1.0-dev Sep 21, 2023

#1887 in Cryptography

31 downloads per month

GPL-3.0-only

65KB
1.5K SLoC

ETF API

Traits and impls for interacting with the ETF network. In particular, to verify proofs + slot secrets, encrypt messages, and to decrypt them.

  • verify(slot_secret, id, proof)
  • encrypt(message, slot_id_list)
  • decrypt(ciphertext, secret_key)

Tests

Run the wasm tests with wasm-pack: wasm-pack test --node

Deploy

run the wasm-build.sh script to generate the wasm-build (in pkg directory)

Dependencies

~12MB
~199K SLoC