16 releases (stable)
3.1.0 | Jan 1, 2023 |
---|---|
3.0.3 | Dec 6, 2022 |
3.0.2 | Nov 29, 2022 |
2.3.0 | Apr 29, 2022 |
0.1.0 | Sep 23, 2021 |
#783 in Cryptography
73 downloads per month
Used in 6 crates
15KB
310 lines
Fides
Fides is a library for cryptographic primitives.
Author
Roy R. O. Okello
Usage
Cargo.toml
[dependencies]
fides = "3.1.0"
Module.rs
use fides::{ ed25519, x25519, merkle_tree, hash::{ sha_2, sha_3 } };
API
ed25519
secret_key -> secret_key
public_key: secret_key -> public_key
sign: message, secret_key -> signature
verify: message, public_key, signature -> bool
x25519
secret_key -> secret_key
public_key: secret_key -> public_key
shared_key: public_key, secret_key -> shared_secret
merkle tree
root: hasher, leaves -> hash
hash
blake_3: input -> hash
sha_2::sha_224: input -> hash
sha_2::sha_256: input -> hash
sha_2::sha_512_224: input -> hash
sha_2::sha_512_256: input -> hash
sha_2::sha_384: input -> hash
sha_2::sha_512: input -> hash
sha_3::sha_224: input -> hash
sha_3::sha_256: input -> hash
sha_3::sha_384: input -> hash
sha_3::sha_512: input -> hash
Future
- Random Number Generator
- Hashing
- Encryption
- Public Key Exchange
- Digital Signatures
- Accumulation
- Commitment Schemes
- Zero-knowledge Proof Schemes
- Verifiable Delay Function
- Fully Homomorphic Encryption
License
MIT
Dependencies
~6MB
~113K SLoC