Skip to content

Commit

Permalink
chore: fix some comments (#3728)
Browse files Browse the repository at this point in the history
Signed-off-by: yetyear <[email protected]>
Co-authored-by: satoshiotomakan <[email protected]>
  • Loading branch information
yetyear and satoshiotomakan authored Mar 13, 2024
1 parent 35378aa commit b6cb1be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/tw_bitcoin/tests/p2tr_script_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn coin_entry_custom_script_path() {
.control_block(&(payload.to_owned(), LeafVersion::TapScript))
.unwrap();

// Provide the the payload and control block directly to the builder.
// Provide the payload and control block directly to the builder.
let tx1 = Proto::Input {
txid: txid.as_slice().into(),
vout: 0,
Expand Down
2 changes: 1 addition & 1 deletion rust/tw_utxo/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl Compiler<StandardBitcoinContext> {
let weight_estimate = tx.weight().to_wu() + total_input_weight;
let fee_estimate = (weight_estimate + 3) / 4 * proto.weight_base;

// Check if there are enough inputs to cover the the full output and fee estimate.
// Check if there are enough inputs to cover the full output and fee estimate.
if total_input_amount < total_output_amount + fee_estimate {
return Err(Error::from(Proto::Error::Error_insufficient_inputs));
}
Expand Down
2 changes: 1 addition & 1 deletion trezor-crypto/crypto/bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
A limb of a bignum256 is *normalized* iff it's less than 2**29.
A bignum256 is *normalized* iff every its limb is normalized.
A number is *fully reduced modulo p* iff it is less than p.
A number is *partly reduced modulo p* iff is is less than 2*p.
A number is *partly reduced modulo p* iff it is less than 2*p.
The number p is usually a prime number such that 2^256 - 2^224 <= p <= 2^256.
All functions except bn_fast_mod expect that all their bignum256 inputs are
Expand Down

0 comments on commit b6cb1be

Please sign in to comment.