Skip to content

Commit

Permalink
Dont pad inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
igamigo committed Apr 11, 2024
1 parent e5eb189 commit 02f0238
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

5 changes: 1 addition & 4 deletions objects/src/notes/inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ impl NoteInputs {
return Err(NoteError::too_many_inputs(values.len()));
}

let hash = {
let padded_values = pad_inputs(&values);
Hasher::hash_elements(&padded_values)
};
let hash = Hasher::hash_elements(&values);

Ok(Self { values, hash })
}
Expand Down

0 comments on commit 02f0238

Please sign in to comment.