tari_crypto

Crates.iotari_crypto
lib.rstari_crypto
version0.20.1
sourcesrc
created_at2019-03-29 13:17:20.625161
updated_at2024-05-09 15:25:30.073496
descriptionTari Cryptography library
homepagehttps://tari.com
repositoryhttps://github.com/tari-project/tari
max_upload_size
id124544
size491,728
SW van Heerden (SWvheerden)

documentation

README

Tari Crypto

Coverage Status

This crate is part of the Tari Cryptocurrency project.

Major features of this library include:

  • Pedersen commitments
  • Schnorr Signatures
  • Generic Public and Secret Keys
  • no-std support

The tari_crypto crate makes heavy use of the excellent Dalek libraries. The default implementation for Tari ECC is the Ristretto255 curve.

Feature flags

bulletproofs_plus

This adds in support for rangeproofs using the tari bulletproof plus library

serde

This adds serialise and deserialize support for all structs using the serde library

borsh

This adds serialise and deserialize support for all structs using the borsh library

precomputed_tables

This uses optimised precomputed tables for calculations. While this is faster than straight-up calculations, this requires large memory to store which is not ideal for small no_std devices

WASM and FFI support

TariCrypto has external WASM and FFI wrappers available here WASM: https://github.com/tari-project/tari-crypto-wasm FFI: https://github.com/tari-project/tari-crypto-ffi

Benchmarks

To run the benchmarks:

$ cargo bench

The benchmarks use Criterion and will produce nice graphs (if you have gnuplot installed)

Commit count: 6846

cargo fmt