From 91ff2f628ce7db732d234a812e29fa8508f501a1 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 29 Jun 2022 14:05:31 +1000 Subject: [PATCH] Introduce SPDX license identifiers When `rust-bitcoin` was started in 2014 the SPDX license list and short identifiers where not a thing. Now that we have short identifiers and they are gaining popularity in other projects we can consider using them. - Add links to the SPDX website in the readme - Shorten the author section to a single line - Remove all the licence information in each file and replace it with an SPDX ID (see https://spdx.dev/ids/#how) Of note: - If the author of a file is explicitly listed, maintain this information - If the 'author' is listed as the generic 'Rust Bitcoin developers' just remove the attribution, this is implicit. This does loose the date info but that can be seen at any time from the git index using `git log --follow --format=%ad --date default | tail -1` --- README.md | 3 ++- src/blockdata/block.rs | 15 ++------------- src/blockdata/constants.rs | 15 ++------------- src/blockdata/mod.rs | 15 ++------------- src/blockdata/opcodes.rs | 15 ++------------- src/blockdata/script.rs | 15 ++------------- src/blockdata/transaction.rs | 15 ++------------- src/blockdata/witness.rs | 2 ++ src/consensus/encode.rs | 15 ++------------- src/consensus/mod.rs | 14 +------------- src/consensus/params.rs | 15 ++------------- src/hash_types.rs | 15 ++------------- src/internal_macros.rs | 15 ++------------- src/lib.rs | 15 ++------------- src/network/address.rs | 15 ++------------- src/network/constants.rs | 15 ++------------- src/network/message.rs | 15 ++------------- src/network/message_blockdata.rs | 15 ++------------- src/network/message_bloom.rs | 2 ++ src/network/message_filter.rs | 2 ++ src/network/message_network.rs | 15 ++------------- src/network/mod.rs | 15 ++------------- src/network/stream_reader.rs | 15 ++------------- src/policy.rs | 15 ++------------- src/serde_utils.rs | 2 ++ src/test_macros.rs | 15 ++------------- src/util/address.rs | 14 ++------------ src/util/amount.rs | 10 +--------- src/util/base58.rs | 15 ++------------- src/util/bip143.rs | 14 ++------------ src/util/bip158.rs | 15 ++------------- src/util/bip32.rs | 14 ++------------ src/util/ecdsa.rs | 15 ++------------- src/util/endian.rs | 2 ++ src/util/hash.rs | 14 ++------------ src/util/key.rs | 14 ++------------ src/util/merkleblock.rs | 18 +++--------------- src/util/misc.rs | 15 ++------------- src/util/mod.rs | 15 ++------------- src/util/psbt/error.rs | 14 +------------- src/util/psbt/macros.rs | 14 +------------- src/util/psbt/map/global.rs | 14 +------------- src/util/psbt/map/input.rs | 14 +------------- src/util/psbt/map/mod.rs | 14 +------------- src/util/psbt/map/output.rs | 14 +------------- src/util/psbt/mod.rs | 14 +------------- src/util/psbt/raw.rs | 14 +------------- src/util/psbt/serialize.rs | 14 +------------- src/util/schnorr.rs | 14 ++------------ src/util/sighash.rs | 14 +------------- src/util/taproot.rs | 13 +------------ src/util/uint.rs | 15 ++------------- 52 files changed, 92 insertions(+), 590 deletions(-) diff --git a/README.md b/README.md index 7fb11cd5..6ae301cb 100644 --- a/README.md +++ b/README.md @@ -158,4 +158,5 @@ See [CHANGELOG.md](CHANGELOG.md). ## Licensing The code in this project is licensed under the [Creative Commons CC0 1.0 -Universal license](LICENSE). +Universal license](LICENSE). We use the [SPDX license list](https://spdx.org/licenses/) and [SPDX +IDs](https://spdx.dev/ids/). diff --git a/src/blockdata/block.rs b/src/blockdata/block.rs index c09467f0..0b639e12 100644 --- a/src/blockdata/block.rs +++ b/src/blockdata/block.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin blocks. //! diff --git a/src/blockdata/constants.rs b/src/blockdata/constants.rs index 421aaf85..9f878591 100644 --- a/src/blockdata/constants.rs +++ b/src/blockdata/constants.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Blockdata constants. //! diff --git a/src/blockdata/mod.rs b/src/blockdata/mod.rs index 48f80ef8..8e07ddca 100644 --- a/src/blockdata/mod.rs +++ b/src/blockdata/mod.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin block data. //! diff --git a/src/blockdata/opcodes.rs b/src/blockdata/opcodes.rs index 9462410d..4bb80de2 100644 --- a/src/blockdata/opcodes.rs +++ b/src/blockdata/opcodes.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin script opcodes. //! diff --git a/src/blockdata/script.rs b/src/blockdata/script.rs index 99b07476..d431d209 100644 --- a/src/blockdata/script.rs +++ b/src/blockdata/script.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin scripts. //! diff --git a/src/blockdata/transaction.rs b/src/blockdata/transaction.rs index 033fc626..767fdcb4 100644 --- a/src/blockdata/transaction.rs +++ b/src/blockdata/transaction.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin transactions. //! diff --git a/src/blockdata/witness.rs b/src/blockdata/witness.rs index c1fa40f4..86d3575a 100644 --- a/src/blockdata/witness.rs +++ b/src/blockdata/witness.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Witness //! //! This module contains the [`Witness`] struct and related methods to operate on it diff --git a/src/consensus/encode.rs b/src/consensus/encode.rs index 9e3b2804..e888b90a 100644 --- a/src/consensus/encode.rs +++ b/src/consensus/encode.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin consensus-encodable types. //! diff --git a/src/consensus/mod.rs b/src/consensus/mod.rs index cdf8e6bb..40514e9f 100644 --- a/src/consensus/mod.rs +++ b/src/consensus/mod.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin consensus. //! diff --git a/src/consensus/params.rs b/src/consensus/params.rs index 33b2f967..fe4d65c8 100644 --- a/src/consensus/params.rs +++ b/src/consensus/params.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin consensus parameters. //! diff --git a/src/hash_types.rs b/src/hash_types.rs index 49bc52c3..0859d71f 100644 --- a/src/hash_types.rs +++ b/src/hash_types.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin hash types. //! diff --git a/src/internal_macros.rs b/src/internal_macros.rs index fd77908f..c2edacb8 100644 --- a/src/internal_macros.rs +++ b/src/internal_macros.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Internal macros. //! diff --git a/src/lib.rs b/src/lib.rs index afdc51a4..8ba12686 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! # Rust Bitcoin Library //! diff --git a/src/network/address.rs b/src/network/address.rs index d7e1a92c..d7678197 100644 --- a/src/network/address.rs +++ b/src/network/address.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin network addresses. //! diff --git a/src/network/constants.rs b/src/network/constants.rs index 97fead78..4a184e09 100644 --- a/src/network/constants.rs +++ b/src/network/constants.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin network constants. //! diff --git a/src/network/message.rs b/src/network/message.rs index 7d095c40..2baed49a 100644 --- a/src/network/message.rs +++ b/src/network/message.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin network messages. //! diff --git a/src/network/message_blockdata.rs b/src/network/message_blockdata.rs index 37af36ea..3cbf083e 100644 --- a/src/network/message_blockdata.rs +++ b/src/network/message_blockdata.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin blockdata network messages. //! diff --git a/src/network/message_bloom.rs b/src/network/message_bloom.rs index daae4d14..2ec5a842 100644 --- a/src/network/message_bloom.rs +++ b/src/network/message_bloom.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Bitcoin Connection Bloom filtering network messages. //! //! This module describes BIP37 Connection Bloom filtering network messages. diff --git a/src/network/message_filter.rs b/src/network/message_filter.rs index 34cc2f09..87bda23b 100644 --- a/src/network/message_filter.rs +++ b/src/network/message_filter.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Bitcoin Client Side Block Filtering network messages. //! //! This module describes BIP157 Client Side Block Filtering network messages. diff --git a/src/network/message_network.rs b/src/network/message_network.rs index 0e884c97..2aeb7a59 100644 --- a/src/network/message_network.rs +++ b/src/network/message_network.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin network-related network messages. //! diff --git a/src/network/mod.rs b/src/network/mod.rs index 48785333..24735636 100644 --- a/src/network/mod.rs +++ b/src/network/mod.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin network support. //! diff --git a/src/network/stream_reader.rs b/src/network/stream_reader.rs index 61c735cd..6b2af321 100644 --- a/src/network/stream_reader.rs +++ b/src/network/stream_reader.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Stream reader. //! diff --git a/src/policy.rs b/src/policy.rs index 0a865653..70ac86b5 100644 --- a/src/policy.rs +++ b/src/policy.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin policy. //! diff --git a/src/serde_utils.rs b/src/serde_utils.rs index 5c8c7fbe..e23ca483 100644 --- a/src/serde_utils.rs +++ b/src/serde_utils.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Bitcoin serde utilities. //! //! This module is for special serde serializations. diff --git a/src/test_macros.rs b/src/test_macros.rs index 46adc579..542ffa2d 100644 --- a/src/test_macros.rs +++ b/src/test_macros.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin serde macros. //! diff --git a/src/util/address.rs b/src/util/address.rs index c7f82b48..0513813e 100644 --- a/src/util/address.rs +++ b/src/util/address.rs @@ -1,15 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin addresses. //! diff --git a/src/util/amount.rs b/src/util/amount.rs index ce7757c6..a0bd4f90 100644 --- a/src/util/amount.rs +++ b/src/util/amount.rs @@ -1,12 +1,4 @@ -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin amounts. //! diff --git a/src/util/base58.rs b/src/util/base58.rs index 7aa69d69..aec2d0a7 100644 --- a/src/util/base58.rs +++ b/src/util/base58.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Base58 encoder and decoder. //! diff --git a/src/util/bip143.rs b/src/util/bip143.rs index 80128a55..e76f9c08 100644 --- a/src/util/bip143.rs +++ b/src/util/bip143.rs @@ -1,15 +1,5 @@ -// Rust Bitcoin Library -// Written in 2018 by -// Andrew Poelstra -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2018 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! BIP143 implementation. //! diff --git a/src/util/bip158.rs b/src/util/bip158.rs index 34079624..0679503b 100644 --- a/src/util/bip158.rs +++ b/src/util/bip158.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2019 by -// The rust-bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2019 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 // This module was largely copied from https://github.com/rust-bitcoin/murmel/blob/master/src/blockfilter.rs // on 11. June 2019 which is licensed under Apache, that file specifically diff --git a/src/util/bip32.rs b/src/util/bip32.rs index cd5421ab..6a4f4dfa 100644 --- a/src/util/bip32.rs +++ b/src/util/bip32.rs @@ -1,15 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! BIP32 implementation. //! diff --git a/src/util/ecdsa.rs b/src/util/ecdsa.rs index ed66998c..8c4282d1 100644 --- a/src/util/ecdsa.rs +++ b/src/util/ecdsa.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! ECDSA Bitcoin signatures. //! diff --git a/src/util/endian.rs b/src/util/endian.rs index c63a906b..dbe2c965 100644 --- a/src/util/endian.rs +++ b/src/util/endian.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + macro_rules! define_slice_to_be { ($name: ident, $type: ty) => { #[inline] diff --git a/src/util/hash.rs b/src/util/hash.rs index 9c8f8594..08e40e90 100644 --- a/src/util/hash.rs +++ b/src/util/hash.rs @@ -1,15 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin hash functions. //! diff --git a/src/util/key.rs b/src/util/key.rs index a2c6a860..8ebba6ea 100644 --- a/src/util/key.rs +++ b/src/util/key.rs @@ -1,15 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin keys. //! diff --git a/src/util/merkleblock.rs b/src/util/merkleblock.rs index 5e3c3478..2f6236e9 100644 --- a/src/util/merkleblock.rs +++ b/src/util/merkleblock.rs @@ -1,22 +1,10 @@ -// Rust Bitcoin Library -// Written by -// John L. Jegutanis -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written by John L. Jegutanis +// SPDX-License-Identifier: CC0-1.0 // // This code was translated from merkleblock.h, merkleblock.cpp and pmt_tests.cpp // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers -// Distributed under the MIT software license, see the accompanying -// file COPYING or http://www.opensource.org/licenses/mit-license.php. +// SPDX-License-Identifier: MIT //! Merkle Block and Partial Merkle Tree. //! diff --git a/src/util/misc.rs b/src/util/misc.rs index 0b15b5f4..d9584a4f 100644 --- a/src/util/misc.rs +++ b/src/util/misc.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Miscellaneous functions. //! diff --git a/src/util/mod.rs b/src/util/mod.rs index 404de072..e544a32e 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Utility functions. //! diff --git a/src/util/psbt/error.rs b/src/util/psbt/error.rs index ebac5745..1af9053d 100644 --- a/src/util/psbt/error.rs +++ b/src/util/psbt/error.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 use crate::prelude::*; diff --git a/src/util/psbt/macros.rs b/src/util/psbt/macros.rs index 542ff1df..875abe49 100644 --- a/src/util/psbt/macros.rs +++ b/src/util/psbt/macros.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 #[allow(unused_macros)] macro_rules! hex_psbt { diff --git a/src/util/psbt/map/global.rs b/src/util/psbt/map/global.rs index 77288ce1..51a321e0 100644 --- a/src/util/psbt/map/global.rs +++ b/src/util/psbt/map/global.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 use crate::prelude::*; diff --git a/src/util/psbt/map/input.rs b/src/util/psbt/map/input.rs index 9f8b38f9..d52fd628 100644 --- a/src/util/psbt/map/input.rs +++ b/src/util/psbt/map/input.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 use crate::prelude::*; use crate::io; diff --git a/src/util/psbt/map/mod.rs b/src/util/psbt/map/mod.rs index 8e67d0d7..7c81f500 100644 --- a/src/util/psbt/map/mod.rs +++ b/src/util/psbt/map/mod.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 use crate::prelude::*; diff --git a/src/util/psbt/map/output.rs b/src/util/psbt/map/output.rs index c3aad44e..37f3e4ae 100644 --- a/src/util/psbt/map/output.rs +++ b/src/util/psbt/map/output.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 use crate::prelude::*; use core; diff --git a/src/util/psbt/mod.rs b/src/util/psbt/mod.rs index 2b56ca71..eb74be00 100644 --- a/src/util/psbt/mod.rs +++ b/src/util/psbt/mod.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 //! Partially Signed Bitcoin Transactions. //! diff --git a/src/util/psbt/raw.rs b/src/util/psbt/raw.rs index 64522b1e..c65dc589 100644 --- a/src/util/psbt/raw.rs +++ b/src/util/psbt/raw.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 //! Raw PSBT key-value pairs. //! diff --git a/src/util/psbt/serialize.rs b/src/util/psbt/serialize.rs index b4b4ea67..0ffd70ff 100644 --- a/src/util/psbt/serialize.rs +++ b/src/util/psbt/serialize.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written by -// The Rust Bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 //! PSBT serialization. //! diff --git a/src/util/schnorr.rs b/src/util/schnorr.rs index b2a711c8..f21bef5b 100644 --- a/src/util/schnorr.rs +++ b/src/util/schnorr.rs @@ -1,15 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Schnorr Bitcoin keys. //! diff --git a/src/util/sighash.rs b/src/util/sighash.rs index a3b6abce..3cce9d89 100644 --- a/src/util/sighash.rs +++ b/src/util/sighash.rs @@ -1,16 +1,4 @@ -// Rust Bitcoin Library -// Written in 2021 by -// The rust-bitcoin developers -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 //! Generalized, efficient, signature hash implementation. //! diff --git a/src/util/taproot.rs b/src/util/taproot.rs index 3cd050d6..c14621fb 100644 --- a/src/util/taproot.rs +++ b/src/util/taproot.rs @@ -1,15 +1,4 @@ -// Rust Bitcoin Library -// Written in 2019 by -// The rust-bitcoin developers. -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// SPDX-License-Identifier: CC0-1.0 //! Bitcoin Taproot. //! diff --git a/src/util/uint.rs b/src/util/uint.rs index ccb702e7..b1c87adc 100644 --- a/src/util/uint.rs +++ b/src/util/uint.rs @@ -1,16 +1,5 @@ -// Rust Bitcoin Library -// Written in 2014 by -// Andrew Poelstra -// -// To the extent possible under law, the author(s) have dedicated all -// copyright and related and neighboring rights to this software to -// the public domain worldwide. This software is distributed without -// any warranty. -// -// You should have received a copy of the CC0 Public Domain Dedication -// along with this software. -// If not, see . -// +// Written in 2014 by Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 //! Big unsigned integer types. //!