Crates.io | zkstd |
lib.rs | zkstd |
version | 0.0.22 |
source | src |
created_at | 2023-07-22 05:55:41.184735 |
updated_at | 2023-11-05 02:59:30.758273 |
description | zero knowledge proof standard library |
homepage | https://github.com/KogarashiNetwork/Kogarashi/ |
repository | https://github.com/KogarashiNetwork/Kogarashi/ |
max_upload_size | |
id | 923013 |
size | 199,635 |
This crate provides basic cryptographic implementation as in Field
, Curve
and Pairing
, Fft
, Kzg
, and also supports fully no_std
and parity-scale-codec
.
Cryptography libraries need to be applied optimization easily because computation cost affects users waiting time and on-chain gas cost. We design this library following two perspectives.
We divide arithmetic operation and interface. Arithmetic operation is concrete logic as in elliptic curve addition and so on, and the interface is trait cryptography primitive supports. And we combine them with macro. With this design, we can keep the finite field and elliptic curve implementation simple.
Fft Field
, Pairing Field
and so on.arithmetic
and behave
together.