Skip to content

Commit

Permalink
chore: fix some typos in comment (BitVM#199)
Browse files Browse the repository at this point in the history
Signed-off-by: davidwoood <[email protected]>
  • Loading branch information
davidwoood authored Jan 20, 2025
1 parent 02157f6 commit 8a04162
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bitvm/src/chunker/chunk_fq12_multiplication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ mod test {
let (filled_segments, _): (Vec<Segment>, Fq12Type) =
fq12_mul_wrapper(&mut assigner, "test_", a_type, b_type, a, b);

println!("segements num {}", filled_segments.len());
println!("segments num {}", filled_segments.len());

for segment in filled_segments {
let witness = segment.witness(&assigner);
Expand Down
2 changes: 1 addition & 1 deletion bitvm/src/chunker/chunk_scalar_mul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{
};

/// This function do scalar multiplication in G1 curve group.
/// Return all segements generated and the result of scalar multiplication.
/// Return all segments generated and the result of scalar multiplication.
#[allow(clippy::too_many_arguments)]
pub fn chunk_hinted_scalar_mul_by_constant<T: BCAssigner>(
assigner: &mut T,
Expand Down
2 changes: 1 addition & 1 deletion bitvm/src/chunker/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub use crate::hash::blake3_u32::blake3_var_length;

use super::disprove_execution::RawProof;

/// The depth of a blake3 hash, depending on the defination of `N_DIGEST_U32_LIMBS`
/// The depth of a blake3 hash, depending on the definition of `N_DIGEST_U32_LIMBS`
pub const BLAKE3_HASH_LENGTH: usize =
crate::hash::blake3_u32::N_DIGEST_U32_LIMBS as usize * 4;
pub type BLAKE3HASH = [u8; BLAKE3_HASH_LENGTH];
Expand Down
4 changes: 2 additions & 2 deletions bitvm/src/chunker/disprove_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ mod tests {
// get all witnesses
let assert_witnesses = assigner.all_intermediate_witnesses(elements);

// must find some avalible chunk
// must find some available chunk
let (id, witness) =
disprove_exec(&mut assigner, assert_witnesses, wrong_proof.vk.clone()).unwrap();

Expand Down Expand Up @@ -328,7 +328,7 @@ mod tests {
// get all witnesses
let assert_witnesses = assigner.all_intermediate_witnesses(elements);

// must find some avalible chunk
// must find some available chunk
let (id, witness) = disprove_exec(&mut assigner, assert_witnesses, wrong_proof.vk).unwrap();

// println!("segment: {:?}", segments[id].parameter_list);
Expand Down
2 changes: 1 addition & 1 deletion bitvm/src/hash/sha256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub fn sha256_k() -> Vec<Script> {
}

/// sha256 transform
/// intput: [m[15], m[14], ..., m[0], state[7], state[6], ..., state[0]]
/// input: [m[15], m[14], ..., m[0], state[7], state[6], ..., state[0]]
/// output: [state[7], state[6], ..., state[0]]
pub fn sha256_transform(xor_depth: u32, k_depth: u32) -> Script {
script! {
Expand Down
2 changes: 1 addition & 1 deletion bitvm/src/u4/u4_shift.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::treepp::{script, Script};
use super::u4_std::u4_drop;

// right and left shfit tables for 3 bits options
// right and left shift tables for 3 bits options
// compressed to reduce the size of the script
// but in memory it will be 16*3 = 48

Expand Down

0 comments on commit 8a04162

Please sign in to comment.