npm.io
0.1.10-dev • Published 1 year ago

@ideallabs/etf-sdk

Licence
GPL-3.0-only
Version
0.1.10-dev
Deps
0
Size
673 kB
Vulns
0
Weekly
0
Stars
3

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)