Skip to content

Commit 613ec13

Browse files
committed
fixup! SFT-UNKN: Add foundation-psbt crate.
1 parent c9e9937 commit 613ec13

16 files changed

+18
-15
lines changed

psbt/src/address.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
#[derive(Debug, Clone, Copy, PartialEq, Eq)]

psbt/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
//! Partially Signed Bitcoin Transaction (PSBT) library.
@@ -10,6 +10,7 @@
1010
pub mod address;
1111
pub mod encoder;
1212
pub mod parser;
13+
pub mod signing;
1314
pub mod taproot;
1415
pub mod transaction;
1516
pub mod validation;

psbt/src/parser/compact_size.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use nom::{

psbt/src/parser/global.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use core::num::TryFromIntError;

psbt/src/parser/hash.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use nom::{

psbt/src/parser/input.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use core::num::TryFromIntError;

psbt/src/parser/keypair.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use core::num::TryFromIntError;

psbt/src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
//! Parser combinators for parsing PSBTs.

psbt/src/parser/multi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
//! Nom combinators applying their child parser multiple times.

psbt/src/parser/output.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use core::num::TryFromIntError;

psbt/src/parser/secp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use core::ops::RangeFrom;

psbt/src/parser/transaction.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
//! Parser for raw bitcoin transactions.
-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
3-

psbt/src/taproot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use bitcoin_primitives::TapLeafHash;

psbt/src/transaction.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <[email protected]>
1+
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
use bitcoin_hashes::sha256d;

psbt/src/validation.rs

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ where
6868
log::debug!("validating PSBT");
6969

7070
let (i, _) = tag::<_, Input, E>(b"psbt\xff")(i)?;
71+
72+
log::trace!("parsing global map");
73+
7174
let (i, global_map) = global::global_map(|_, _| ())(i)?;
7275

7376
let input_count = global_map.input_count().unwrap_or(0);

0 commit comments

Comments
 (0)