Skip to content

Commit

Permalink
feat: add the crypto crate
Browse files Browse the repository at this point in the history
Some common crypto utilities, signatures, verify, and hash functions for elliptic curve.
  • Loading branch information
ai-chen2050 authored and fshif committed Sep 20, 2024
1 parent 5aafe76 commit 429bca1
Show file tree
Hide file tree
Showing 6 changed files with 688 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ members = [
"crates/accumulator",
"crates/vlc",
"crates/cops",
"crates/crypto",
"demos/test_conflict",
"demos/coll-tx",
"demos/vlc-dag"
"demos/vlc-dag",
]

[profile.release]
Expand All @@ -37,4 +38,3 @@ tokio-util = "0.7.10"
[lib]
name = "chronos"
path = "src/lib.rs"

3 changes: 3 additions & 0 deletions crates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ The crates folder of Chronos includes core functional code crates and utility li
- The data store maintains a set of key-value pairs.
- It provides causal consistency to clients.

## [crypto](./crypto/)

- Some common crypto utilities, signatures, verify, and hash functions for elliptic curve.
21 changes: 21 additions & 0 deletions crates/crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "crypto"
version = "0.1.0"
edition = "2021"

[dependencies]
derive_more = "0.99.17"
derive-where = "1.2.7"
bincode = "1.3.3"
serde = { version = "1.0.195", features = ["derive"] }
schnorrkel = { version = "0.11.4", features = ["serde"] }
secp256k1 = { version = "0.29.0", features = ["rand-std", "serde", "recovery"] }
nix = { version = "0.28.0", features = ["socket", "sched", "resource"] }
serde_json = "1.0.114"
sha2 = "0.10.8"
sha3 = "0.10.1"
hex = "0.4.3"
blake2 = "0.10.6"
rand = "0.8.5"
primitive-types = { version = "0.12.2", features = ["serde"] }
anyhow = { version = "1.0.79", features = ["backtrace"] }
Loading

0 comments on commit 429bca1

Please sign in to comment.