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
10 changes: 5 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion internal/mithril-build-script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-build-script"
version = "0.2.6"
version = "0.2.7"
description = "A toolbox for Mithril crates build scripts"
authors = { workspace = true }
edition = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion internal/mithril-build-script/src/fake_aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl FakeAggregatorData {

for entry in list_json_files_in_folder(folder) {
let filename = entry.file_name().to_string_lossy().to_string();
let file_content = fs::read_to_string(&entry.path()).unwrap_or_else(|_| {
let file_content = fs::read_to_string(entry.path()).unwrap_or_else(|_| {
panic!(
"Could not read file content, file_path: {}",
entry.path().display()
Expand Down
2 changes: 1 addition & 1 deletion mithril-client-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-client-cli"
version = "0.9.7"
version = "0.9.8"
description = "A Mithril Client"
authors = { workspace = true }
edition = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion mithril-client-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! * Cardano DB: List, Show, download and verify
//! * Mithril Stake Distribution: List, download and verify
//
//! You can find more information on how it works reading the [documentation website](https://mithril.network/doc/mithril/mithril-network/client).
//! You can find more information on how it works reading the [documentation website](https://mithril.network/doc/mithril/mithril-network/client).

pub mod commands;
mod configuration;
Expand Down
2 changes: 1 addition & 1 deletion mithril-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-client"
version = "0.8.8"
version = "0.8.9"
description = "Mithril client library"
authors = { workspace = true }
edition = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions mithril-client/src/cardano_transaction_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//!
//! In order to do so it defines a [CardanoTransactionClient] which exposes the following features:
//! - [get_proofs][CardanoTransactionClient::get_proofs]: get a [cryptographic proof][CardanoTransactionsProofs]
//! that the transactions with given hash are included in the global Cardano transactions set.
//! that the transactions with given hash are included in the global Cardano transactions set.
//! - [get][CardanoTransactionClient::get_snapshot]: get a [Cardano transaction snapshot][CardanoTransactionSnapshot]
//! data from its hash.
//! data from its hash.
//! - [list][CardanoTransactionClient::list_snapshots]: get the list of the latest available Cardano transaction
//! snapshot.
//! snapshot.
//!
//! **Important:** Verifying a proof **only** means that its cryptography is valid, in order to certify that a Cardano
//! transactions subset is valid, the associated proof must be tied to a valid Mithril certificate (see the example below).
Expand Down
2 changes: 1 addition & 1 deletion mithril-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//! - [Snapshot][snapshot_client] list, get, download tarball and record statistics.
//! - [Mithril stake distribution][mithril_stake_distribution_client] list and get.
//! - [Cardano transactions][cardano_transaction_client] list & get snapshot, get proofs
//! _(available using crate feature_ **unstable**_)_.
//! _(available using crate feature_ **unstable**_)_.
//! - [Certificates][certificate_client] list, get, and chain validation.
//!
//! The [Client] aggregates the queries of all of those types.
Expand Down
2 changes: 1 addition & 1 deletion mithril-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-common"
version = "0.4.35"
version = "0.4.36"
description = "Common types, interfaces, and utilities for Mithril nodes."
authors = { workspace = true }
edition = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion mithril-common/src/entities/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Certificate {
}
CertificateSignature::MultiSignature(signed_entity_type, signature) => {
signed_entity_type.feed_hash(&mut hasher);
hasher.update(&signature.to_json_hex().unwrap());
hasher.update(signature.to_json_hex().unwrap());
}
};
hex::encode(hasher.finalize())
Expand Down
4 changes: 2 additions & 2 deletions mithril-common/src/entities/signed_entity_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ impl CardanoTransactionsSigningConfig {
///
/// *Notes:*
/// * *The step is adjusted to be a multiple of the block range length in order
/// to guarantee that the block number signed in a certificate is effectively signed.*
/// to guarantee that the block number signed in a certificate is effectively signed.*
/// * *1 is subtracted to the result because block range end is exclusive (ie: a BlockRange over
/// `30..45` finish at 44 included, 45 is included in the next block range).*
/// `30..45` finish at 44 included, 45 is included in the next block range).*
pub fn compute_block_number_to_be_signed(&self, block_number: BlockNumber) -> BlockNumber {
// TODO: See if we can remove this adjustment by including a "partial" block range in
// the signed data.
Expand Down
2 changes: 1 addition & 1 deletion mithril-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! Provide:
//! - [Digester][digesters] to compute mithril digest from a Cardano database
//! - Helpers for the [Mithril STM](https://mithril.network/rust-doc/mithril_stm/index.html)
//! lib with the [crypto_helper].
//! lib with the [crypto_helper].
//! - [certificate chain][certificate_chain] used to validate the Certificate Chain created by an aggregator
//! - The [entities] used by, and exchanged between, the aggregator, signers and client.

Expand Down
8 changes: 5 additions & 3 deletions mithril-stm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-stm"
version = "0.3.24"
version = "0.3.25"
edition = { workspace = true }
authors = { workspace = true }
homepage = { workspace = true }
Expand Down Expand Up @@ -54,5 +54,7 @@ harness = false
default = ["rug-backend"]
rug-backend = ["rug/default"]
num-integer-backend = ["num-bigint", "num-rational", "num-traits"]
portable = [] # deprecated, will be removed soon
benchmark-internals = [] # For benchmarking multi_sig
portable = [] # deprecated, will be removed soon
benchmark-internals = [] # For benchmarking multi_sig
batch-verify-aggregates = [
] # For batch verification of multi-signatures (set automatically by build script)
2 changes: 1 addition & 1 deletion mithril-stm/src/merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ impl<D: Clone + Digest> MerkleTreeCommitmentBatchCompat<D> {
new_hashes.push(
D::new()
.chain(&leaves[i])
.chain(&D::digest([0u8]))
.chain(D::digest([0u8]))
.finalize()
.to_vec(),
);
Expand Down
2 changes: 1 addition & 1 deletion mithril-stm/src/stm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> StmAggrSig<D> {
/// * the lottery is indeed won by each one of them,
/// * the merkle tree path is valid,
/// * the aggregate signature validates with respect to the aggregate verification key
/// (aggregation is computed using functions `MSP.BKey` and `MSP.BSig` as described in Section 2.4 of the paper).
/// (aggregation is computed using functions `MSP.BKey` and `MSP.BSig` as described in Section 2.4 of the paper).
pub fn verify(
&self,
msg: &[u8],
Expand Down