Skip to content

Commit

Permalink
Merge pull request #1850 from AleoHQ/feat/committee-struct
Browse files Browse the repository at this point in the history
Implements committee struct and storage
  • Loading branch information
howardwu authored Jul 31, 2023
2 parents 57c26f8 + 092e18a commit 9eafb0c
Show file tree
Hide file tree
Showing 23 changed files with 2,042 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,15 @@ jobs:
workspace_member: ledger/coinbase
cache_key: snarkvm-ledger-coinbase-cache

ledger-committee:
docker:
- image: cimg/rust:1.69
resource_class: xlarge
steps:
- run_serial:
workspace_member: ledger/committee
cache_key: snarkvm-ledger-committee-cache

ledger-narwhal:
docker:
- image: cimg/rust:1.69
Expand Down Expand Up @@ -777,6 +786,7 @@ workflows:
- ledger-authority
- ledger-block
- ledger-coinbase
- ledger-committee
- ledger-narwhal
- ledger-narwhal-batch-certificate
- ledger-narwhal-batch-header
Expand Down
141 changes: 141 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ members = [
"ledger/authority",
"ledger/block",
"ledger/coinbase",
"ledger/committee",
"ledger/narwhal",
"ledger/narwhal/batch-certificate",
"ledger/narwhal/batch-header",
Expand Down
6 changes: 6 additions & 0 deletions ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ serial = [
"ledger-authority/serial",
"ledger-block/serial",
"ledger-coinbase/serial",
"ledger-committee/serial",
"ledger-narwhal/serial",
"ledger-query/serial",
"ledger-store/serial",
Expand Down Expand Up @@ -63,6 +64,11 @@ package = "snarkvm-ledger-coinbase"
path = "./coinbase"
version = "=0.14.6"

[dependencies.ledger-committee]
package = "snarkvm-ledger-committee"
path = "./committee"
version = "=0.14.6"

[dependencies.ledger-narwhal]
package = "snarkvm-ledger-narwhal"
path = "./narwhal"
Expand Down
84 changes: 84 additions & 0 deletions ledger/committee/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
[package]
name = "snarkvm-ledger-committee"
version = "0.14.6"
authors = [ "The Aleo Team <[email protected]>" ]
description = "A committee for a decentralized virtual machine"
homepage = "https://aleo.org"
repository = "https://github.com/AleoHQ/snarkVM"
keywords = [
"aleo",
"cryptography",
"blockchain",
"decentralized",
"zero-knowledge"
]
categories = [
"compilers",
"cryptography",
"mathematics",
"wasm",
"web-programming"
]
include = [ "Cargo.toml", "src", "README.md", "LICENSE.md" ]
license = "Apache-2.0"
edition = "2021"

[features]
default = [ ]
serial = [ "console/serial" ]
wasm = [ "console/wasm" ]
prop-tests = [ "rand", "rand_chacha", "test-strategy", "proptest", "anyhow" ]
test-helpers = [ "rand_distr" ]

[dependencies.console]
package = "snarkvm-console"
path = "../../console"
version = "=0.14.6"

[dependencies.indexmap]
version = "2.0"
features = [ "serde", "rayon" ]

[dependencies.serde_json]
version = "1.0"
features = [ "preserve_order" ]

[dependencies.anyhow]
version = "1.0.71"
optional = true

[dependencies.proptest]
version = "1.0.0"
optional = true

[dependencies.rand]
version = "0.8"
optional = true

[dependencies.rand_chacha]
version = "0.3"
optional = true

[dependencies.rand_distr]
version = "0.4"
optional = true

[dependencies.test-strategy]
version = "0.3.1"
optional = true

[dev-dependencies.bincode]
version = "1.3"

[dev-dependencies.parking_lot]
version = "0.12"

[dev-dependencies.rand_distr]
version = "0.4"

[dev-dependencies.rayon]
version = "1"

[dev-dependencies.snarkvm-ledger-committee]
path = "."
features = [ "prop-tests" ]
Loading

0 comments on commit 9eafb0c

Please sign in to comment.