diff --git a/eigentrust-zk/src/circuits/dynamic_sets/mod.rs b/eigentrust-zk/src/circuits/dynamic_sets/mod.rs index 720802d9..73b2a594 100644 --- a/eigentrust-zk/src/circuits/dynamic_sets/mod.rs +++ b/eigentrust-zk/src/circuits/dynamic_sets/mod.rs @@ -138,7 +138,7 @@ where let mut s_inv_row = Vec::new(); for j in 0..NUM_NEIGHBOURS { // - // NOTE: Current circuit impl assumes that the "attestations" are full, even including self-attestation. + // NOTE: Current circuit impl assumes that the "attestations" are full, even including self-attestation. // Should be fixed later. // let att = attestations[i][j].clone().unwrap(); @@ -160,15 +160,15 @@ where unassigned_msg_hashes.push(msg_hashes_row); unassigned_s_invs.push(s_inv_row); - // + // // TODO: Update/remove this concept of "default pubkey" in the future. // This "default pubkey" can cause confusion & unexpected issues. - // + // // Here, if the pubkey is not given (None), the "default" pubkey is added automatically. - // This means that if there is only 1 real pubkey, + // This means that if there is only 1 real pubkey, // the "unassigned_pks" would include NUM_NEIGHBORS pubkeys with default pubkey. - // - // Example: + // + // Example: // pks = [ Some(pk1), Some(pk2), None, None ] // unassigned_pks = [ pk1, pk2, default_pk, default_pk ] // diff --git a/eigentrust/src/lib.rs b/eigentrust/src/lib.rs index 147d79fe..9065116f 100644 --- a/eigentrust/src/lib.rs +++ b/eigentrust/src/lib.rs @@ -409,9 +409,9 @@ impl Client { // // TODO: Remove the following patch in the future. // - // In real world scenario, the address(pubkey) does not give attestation itself, + // In real world scenario, the address(pubkey) does not give attestation itself, // which is equal to "attestation_matrix[origin_index][origin_index] = None". - // But, the current EigenTrust circuit impl includes the check of + // But, the current EigenTrust circuit impl includes the check of // "address_set[i] == attestaions[i][i].about". // Hence, we add the self-attestation here, for temporary patch. // @@ -507,7 +507,7 @@ impl Client { || { EigenError::ValidationError(format!( "Participant {} not found", - participant_address.to_string() + participant_address )) }, )?;