Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ignorePaths:
- node_modules
- "**/package-lock.json"
words:
- ciphertext
- Devnet
- grpcurl
- Merkle
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions bin/validator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ doctest = false
anyhow = { workspace = true }
aws-config = { version = "1.8.14" }
aws-sdk-kms = { version = "1.100" }
base64 = { version = "0.22" }
clap = { features = ["env", "string"], workspace = true }
fs-err = { workspace = true }
hex = { workspace = true }
Expand All @@ -47,5 +48,6 @@ miden-node-db = { workspace = true }
miden-node-store = { workspace = true }
miden-node-utils = { features = ["testing"], workspace = true }
miden-protocol = { default-features = true, features = ["testing"], workspace = true }
rand = { workspace = true }
tempfile = { workspace = true }
tokio = { features = ["macros", "rt-multi-thread"], workspace = true }
8 changes: 4 additions & 4 deletions bin/validator/src/commands/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use miden_node_utils::fs::ensure_empty_directory;
use miden_protocol::utils::serde::Serializable;
use miden_validator::{DataDirectory, ValidatorSigner};

use super::ValidatorKey;
use super::ValidatorSigningKey;
Comment thread
Mirko-von-Leipzig marked this conversation as resolved.

// Bootstraps the validator component.
pub async fn bootstrap(
Expand All @@ -17,7 +17,7 @@ pub async fn bootstrap(
data_directory: &Path,
sqlite_connection_pool_size: NonZeroUsize,
genesis_config: Option<&PathBuf>,
validator_key: ValidatorKey,
signing_key: ValidatorSigningKey,
) -> anyhow::Result<()> {
let config = genesis_config
.map(|file_path| {
Expand All @@ -32,7 +32,7 @@ pub async fn bootstrap(
ensure_empty_directory(directory)?;
}

let signer = validator_key.into_signer().await?;
let signer = signing_key.into_signer().await?;
let dirs = DataDirectory::load_bootstrap(
genesis_block_directory.to_path_buf(),
accounts_directory.to_path_buf(),
Expand Down Expand Up @@ -68,7 +68,7 @@ async fn build_and_write_genesis(
.into_unsigned_block()
.context("failed to build the unsigned genesis block")?;
let signature = signer
.sign(unsigned_genesis_block.header())
.sign_commitment(unsigned_genesis_block.header().commitment())
.await
.context("failed to sign the genesis block")?;
let genesis_block = unsigned_genesis_block
Expand Down
Loading
Loading