Skip to content
Open
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
2 changes: 1 addition & 1 deletion bitcoin/src/crypto/sighash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ impl<'a> Arbitrary<'a> for TapSighashType {
}

#[cfg(feature = "arbitrary")]
impl<'a, T> Arbitrary<'a> for SighashCache<T>
impl<'a, T> Arbitrary<'a> for SighashCache<T>
where
T: Borrow<Transaction> + Arbitrary<'a>,
{
Expand Down
3 changes: 1 addition & 2 deletions bitcoin/tests/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ use bitcoin::taproot::{self, ControlBlock, LeafVersion, TapTree, TaprootBuilder}
use bitcoin::witness::Witness;
use bitcoin::{
ecdsa, hex, transaction, Address, Amount, LegacyPublicKey, NetworkKind, OutPoint,
ScriptPubKeyBuf, ScriptSigBuf, Sequence, TapScriptBuf, Transaction, TxIn, TxOut, Txid,
WifKey,
ScriptPubKeyBuf, ScriptSigBuf, Sequence, TapScriptBuf, Transaction, TxIn, TxOut, Txid, WifKey,
};

#[test]
Expand Down
7 changes: 3 additions & 4 deletions fuzz/fuzz_targets/bitcoin/arbitrary_psbt.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![cfg_attr(fuzzing, no_main)]
#![cfg_attr(not(fuzzing), allow(unused))]

use libfuzzer_sys::fuzz_target;
use arbitrary::{Arbitrary, Unstructured};

use bitcoin::{FeeRate, Psbt, Transaction, bip32::Xpriv};
use bitcoin::bip32::Xpriv;
use bitcoin::{FeeRate, Psbt, Transaction};
use libfuzzer_sys::fuzz_target;

#[cfg(not(fuzzing))]
fn main() {}
Expand All @@ -14,7 +14,6 @@ fn do_test(data: &[u8]) {
let p = Psbt::arbitrary(&mut u);

if let Ok(mut psbt) = p {

if let Ok(tx) = Transaction::arbitrary(&mut u) {
let _ = Psbt::from_unsigned_tx(tx);
}
Expand Down
1 change: 0 additions & 1 deletion hashes/src/sha256/crypto/arm_sha2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -944,4 +944,3 @@ pub(super) unsafe fn sha256d_64_2way(output: &mut [[u8; 32]; 2], input: &[[u8; 6
vst1q_u8(output[1].as_mut_ptr().add(0), vrev32q_u8(vreinterpretq_u8_u32(state0_b)));
vst1q_u8(output[1].as_mut_ptr().add(16), vrev32q_u8(vreinterpretq_u8_u32(state1_b)));
}

1 change: 0 additions & 1 deletion hashes/src/sha256/crypto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#![allow(clippy::too_many_lines)]
#![allow(clippy::many_single_char_names)]


#[cfg(target_arch = "aarch64")]
#[cfg(any(feature = "cpufeatures", feature = "std"))]
mod arm_sha2;
Expand Down
1 change: 0 additions & 1 deletion hashes/src/sha256/crypto/x86_shani.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,3 @@ pub(super) unsafe fn process_block(state: &mut [u32; 8], block: &[u8]) {
_mm_storeu_si128(state.as_mut_ptr().add(0).cast::<__m128i>(), state0);
_mm_storeu_si128(state.as_mut_ptr().add(4).cast::<__m128i>(), state1);
}

2 changes: 1 addition & 1 deletion units/tests/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Serde {
rel_locktime: RelativeLockTime::Blocks(NumberOfBlocks::MAX),

target: Target::MAX_ATTAINABLE_MAINNET,
work: Target::MAX_ATTAINABLE_MAINNET.to_work()
work: Target::MAX_ATTAINABLE_MAINNET.to_work(),
}
}
}
Expand Down