diff --git a/bitcoin/src/address.rs b/bitcoin/src/address.rs index 533a83ef2..606f5ac4f 100644 --- a/bitcoin/src/address.rs +++ b/bitcoin/src/address.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin addresses. diff --git a/bitcoin/src/base58.rs b/bitcoin/src/base58.rs index 99321c10a..98fea7cf4 100644 --- a/bitcoin/src/base58.rs +++ b/bitcoin/src/base58.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Base58 encoder and decoder. diff --git a/bitcoin/src/bip158.rs b/bitcoin/src/bip158.rs index b7009fe88..2f794ca80 100644 --- a/bitcoin/src/bip158.rs +++ b/bitcoin/src/bip158.rs @@ -1,4 +1,3 @@ -// Written in 2019 by Tammas Blummer. // SPDX-License-Identifier: CC0-1.0 // This module was largely copied from https://github.com/rust-bitcoin/murmel/blob/master/src/blockfilter.rs diff --git a/bitcoin/src/bip32.rs b/bitcoin/src/bip32.rs index f30f0d032..31d7fce32 100644 --- a/bitcoin/src/bip32.rs +++ b/bitcoin/src/bip32.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! BIP32 implementation. diff --git a/bitcoin/src/blockdata/block.rs b/bitcoin/src/blockdata/block.rs index 0065903ff..b496787a8 100644 --- a/bitcoin/src/blockdata/block.rs +++ b/bitcoin/src/blockdata/block.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin blocks. diff --git a/bitcoin/src/blockdata/constants.rs b/bitcoin/src/blockdata/constants.rs index 44ee11d38..f8825ef70 100644 --- a/bitcoin/src/blockdata/constants.rs +++ b/bitcoin/src/blockdata/constants.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Blockdata constants. diff --git a/bitcoin/src/blockdata/fee_rate.rs b/bitcoin/src/blockdata/fee_rate.rs index a0686bdaf..45f83322f 100644 --- a/bitcoin/src/blockdata/fee_rate.rs +++ b/bitcoin/src/blockdata/fee_rate.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Implements `FeeRate` and assoctiated features. use core::fmt; diff --git a/bitcoin/src/blockdata/locktime/absolute.rs b/bitcoin/src/blockdata/locktime/absolute.rs index a755d065f..957a50e08 100644 --- a/bitcoin/src/blockdata/locktime/absolute.rs +++ b/bitcoin/src/blockdata/locktime/absolute.rs @@ -1,4 +1,3 @@ -// Rust Bitcoin Library - Written by the rust-bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! Provides type [`LockTime`] that implements the logic around nLockTime/OP_CHECKLOCKTIMEVERIFY. diff --git a/bitcoin/src/blockdata/locktime/mod.rs b/bitcoin/src/blockdata/locktime/mod.rs index 5100d702f..c09d3323c 100644 --- a/bitcoin/src/blockdata/locktime/mod.rs +++ b/bitcoin/src/blockdata/locktime/mod.rs @@ -1,4 +1,3 @@ -// Rust Bitcoin Library - Written by the rust-bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! Provides absolute and relative locktimes. diff --git a/bitcoin/src/blockdata/locktime/relative.rs b/bitcoin/src/blockdata/locktime/relative.rs index 21fb237ef..4d596acc8 100644 --- a/bitcoin/src/blockdata/locktime/relative.rs +++ b/bitcoin/src/blockdata/locktime/relative.rs @@ -1,4 +1,3 @@ -// Rust Bitcoin Library - Written by the rust-bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! Provides type [`LockTime`] that implements the logic around nSequence/OP_CHECKSEQUENCEVERIFY. diff --git a/bitcoin/src/blockdata/mod.rs b/bitcoin/src/blockdata/mod.rs index 12cc342a7..234f16234 100644 --- a/bitcoin/src/blockdata/mod.rs +++ b/bitcoin/src/blockdata/mod.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin block data. diff --git a/bitcoin/src/blockdata/opcodes.rs b/bitcoin/src/blockdata/opcodes.rs index 296e8a652..76ddbce86 100644 --- a/bitcoin/src/blockdata/opcodes.rs +++ b/bitcoin/src/blockdata/opcodes.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin script opcodes. diff --git a/bitcoin/src/blockdata/script/borrowed.rs b/bitcoin/src/blockdata/script/borrowed.rs index b98071382..aad2f5575 100644 --- a/bitcoin/src/blockdata/script/borrowed.rs +++ b/bitcoin/src/blockdata/script/borrowed.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 use core::convert::{TryFrom, TryInto}; diff --git a/bitcoin/src/blockdata/script/builder.rs b/bitcoin/src/blockdata/script/builder.rs index 56f4fef09..15eaee446 100644 --- a/bitcoin/src/blockdata/script/builder.rs +++ b/bitcoin/src/blockdata/script/builder.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 #[cfg(feature = "bitcoinconsensus")] diff --git a/bitcoin/src/blockdata/script/instruction.rs b/bitcoin/src/blockdata/script/instruction.rs index 25e241ba0..8d8248077 100644 --- a/bitcoin/src/blockdata/script/instruction.rs +++ b/bitcoin/src/blockdata/script/instruction.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 use core::convert::TryInto; diff --git a/bitcoin/src/blockdata/script/mod.rs b/bitcoin/src/blockdata/script/mod.rs index 596f89189..c3cab10f8 100644 --- a/bitcoin/src/blockdata/script/mod.rs +++ b/bitcoin/src/blockdata/script/mod.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin scripts. diff --git a/bitcoin/src/blockdata/script/owned.rs b/bitcoin/src/blockdata/script/owned.rs index feaf27f7d..0eea48969 100644 --- a/bitcoin/src/blockdata/script/owned.rs +++ b/bitcoin/src/blockdata/script/owned.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 #[cfg(doc)] diff --git a/bitcoin/src/blockdata/script/push_bytes.rs b/bitcoin/src/blockdata/script/push_bytes.rs index 141c012c1..ac2b91384 100644 --- a/bitcoin/src/blockdata/script/push_bytes.rs +++ b/bitcoin/src/blockdata/script/push_bytes.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Contains `PushBytes` & co use core::borrow::{Borrow, BorrowMut}; diff --git a/bitcoin/src/blockdata/script/tests.rs b/bitcoin/src/blockdata/script/tests.rs index 1675649eb..464c121f0 100644 --- a/bitcoin/src/blockdata/script/tests.rs +++ b/bitcoin/src/blockdata/script/tests.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + use core::str::FromStr; use hashes::Hash; diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index feebd93de..62b28f616 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin transactions. diff --git a/bitcoin/src/blockdata/weight.rs b/bitcoin/src/blockdata/weight.rs index 05f5e7ec7..f2a296e0b 100644 --- a/bitcoin/src/blockdata/weight.rs +++ b/bitcoin/src/blockdata/weight.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Implements `Weight` and associated features. use core::fmt; diff --git a/bitcoin/src/consensus/encode.rs b/bitcoin/src/consensus/encode.rs index ccd901032..6fc6a5885 100644 --- a/bitcoin/src/consensus/encode.rs +++ b/bitcoin/src/consensus/encode.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin consensus-encodable types. diff --git a/bitcoin/src/consensus/params.rs b/bitcoin/src/consensus/params.rs index 07b5ff8df..cd9cb5bc1 100644 --- a/bitcoin/src/consensus/params.rs +++ b/bitcoin/src/consensus/params.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin consensus parameters. diff --git a/bitcoin/src/consensus/serde.rs b/bitcoin/src/consensus/serde.rs index 01f3de071..c23936351 100644 --- a/bitcoin/src/consensus/serde.rs +++ b/bitcoin/src/consensus/serde.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Serde serialization via consensus encoding //! //! This provides functions for (de)serializing any type as consensus-encoded bytes. diff --git a/bitcoin/src/crypto/ecdsa.rs b/bitcoin/src/crypto/ecdsa.rs index 68743ee39..65f94446d 100644 --- a/bitcoin/src/crypto/ecdsa.rs +++ b/bitcoin/src/crypto/ecdsa.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! ECDSA Bitcoin signatures. diff --git a/bitcoin/src/crypto/key.rs b/bitcoin/src/crypto/key.rs index 14f23e1b9..5182c47a0 100644 --- a/bitcoin/src/crypto/key.rs +++ b/bitcoin/src/crypto/key.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin keys. diff --git a/bitcoin/src/crypto/mod.rs b/bitcoin/src/crypto/mod.rs index a567fc68a..82c412790 100644 --- a/bitcoin/src/crypto/mod.rs +++ b/bitcoin/src/crypto/mod.rs @@ -1,4 +1,3 @@ -// Rust Bitcoin Library - Written by the rust-bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! Cryptography diff --git a/bitcoin/src/crypto/taproot.rs b/bitcoin/src/crypto/taproot.rs index eddc911d2..ffb34c630 100644 --- a/bitcoin/src/crypto/taproot.rs +++ b/bitcoin/src/crypto/taproot.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin taproot keys. diff --git a/bitcoin/src/error.rs b/bitcoin/src/error.rs index 3d3fb4c87..0dbc61995 100644 --- a/bitcoin/src/error.rs +++ b/bitcoin/src/error.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Contains error types and other error handling tools. use core::fmt; diff --git a/bitcoin/src/hash_types.rs b/bitcoin/src/hash_types.rs index 4fbb85070..b9b9f9890 100644 --- a/bitcoin/src/hash_types.rs +++ b/bitcoin/src/hash_types.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin hash types. diff --git a/bitcoin/src/internal_macros.rs b/bitcoin/src/internal_macros.rs index c48893f83..ae0e54f60 100644 --- a/bitcoin/src/internal_macros.rs +++ b/bitcoin/src/internal_macros.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Internal macros. diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs index 6013d45a7..1a6f2ea19 100644 --- a/bitcoin/src/lib.rs +++ b/bitcoin/src/lib.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! # Rust Bitcoin Library diff --git a/bitcoin/src/merkle_tree/block.rs b/bitcoin/src/merkle_tree/block.rs index bbc831056..8d031ef82 100644 --- a/bitcoin/src/merkle_tree/block.rs +++ b/bitcoin/src/merkle_tree/block.rs @@ -1,4 +1,3 @@ -// Written by John L. Jegutanis // SPDX-License-Identifier: CC0-1.0 // // This code was translated from merkleblock.h, merkleblock.cpp and pmt_tests.cpp diff --git a/bitcoin/src/merkle_tree/mod.rs b/bitcoin/src/merkle_tree/mod.rs index f01c2ef19..c120d8fae 100644 --- a/bitcoin/src/merkle_tree/mod.rs +++ b/bitcoin/src/merkle_tree/mod.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin merkle tree functions. diff --git a/bitcoin/src/network/address.rs b/bitcoin/src/network/address.rs index d9544b5cb..3dec4f14c 100644 --- a/bitcoin/src/network/address.rs +++ b/bitcoin/src/network/address.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin network addresses. diff --git a/bitcoin/src/network/constants.rs b/bitcoin/src/network/constants.rs index 1259cb5a4..aceb274d7 100644 --- a/bitcoin/src/network/constants.rs +++ b/bitcoin/src/network/constants.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin network constants. diff --git a/bitcoin/src/network/message.rs b/bitcoin/src/network/message.rs index 1406f7e38..c083945db 100644 --- a/bitcoin/src/network/message.rs +++ b/bitcoin/src/network/message.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin network messages. diff --git a/bitcoin/src/network/message_blockdata.rs b/bitcoin/src/network/message_blockdata.rs index a1a63aba5..64273b7bd 100644 --- a/bitcoin/src/network/message_blockdata.rs +++ b/bitcoin/src/network/message_blockdata.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin blockdata network messages. diff --git a/bitcoin/src/network/message_compact_blocks.rs b/bitcoin/src/network/message_compact_blocks.rs index 8827e5435..662460528 100644 --- a/bitcoin/src/network/message_compact_blocks.rs +++ b/bitcoin/src/network/message_compact_blocks.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! //! BIP152 Compact Blocks network messages //! diff --git a/bitcoin/src/network/message_network.rs b/bitcoin/src/network/message_network.rs index 16c41f0cb..b49974f5d 100644 --- a/bitcoin/src/network/message_network.rs +++ b/bitcoin/src/network/message_network.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin network-related network messages. diff --git a/bitcoin/src/network/mod.rs b/bitcoin/src/network/mod.rs index 18855f72b..2e3796867 100644 --- a/bitcoin/src/network/mod.rs +++ b/bitcoin/src/network/mod.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin network support. diff --git a/bitcoin/src/parse.rs b/bitcoin/src/parse.rs index 4da004280..777a5038e 100644 --- a/bitcoin/src/parse.rs +++ b/bitcoin/src/parse.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + use core::convert::TryFrom; use core::fmt; use core::str::FromStr; diff --git a/bitcoin/src/policy.rs b/bitcoin/src/policy.rs index 8390061af..6bda6608e 100644 --- a/bitcoin/src/policy.rs +++ b/bitcoin/src/policy.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin policy. diff --git a/bitcoin/src/pow.rs b/bitcoin/src/pow.rs index 7feb8f3fc..9630ed500 100644 --- a/bitcoin/src/pow.rs +++ b/bitcoin/src/pow.rs @@ -1,4 +1,3 @@ -// Rust Bitcoin Library - Written by the rust-bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! Proof-of-work related integer types. diff --git a/bitcoin/src/sign_message.rs b/bitcoin/src/sign_message.rs index e4cba47f0..52f445a4f 100644 --- a/bitcoin/src/sign_message.rs +++ b/bitcoin/src/sign_message.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Signature diff --git a/bitcoin/src/test_macros.rs b/bitcoin/src/test_macros.rs index 542ffa2db..cbcbd4bd5 100644 --- a/bitcoin/src/test_macros.rs +++ b/bitcoin/src/test_macros.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Bitcoin serde macros. diff --git a/bitcoin/src/util/mod.rs b/bitcoin/src/util/mod.rs index 7f73179d7..537e35acb 100644 --- a/bitcoin/src/util/mod.rs +++ b/bitcoin/src/util/mod.rs @@ -1,4 +1,3 @@ -// Written in 2014 by Andrew Poelstra // SPDX-License-Identifier: CC0-1.0 //! Utility functions. diff --git a/hashes/src/cmp.rs b/hashes/src/cmp.rs index 05b430d96..d84b31c00 100644 --- a/hashes/src/cmp.rs +++ b/hashes/src/cmp.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Useful comparison functions. /// Compare two slices for equality in fixed time. Panics if the slices are of non-equal length. diff --git a/hashes/src/error.rs b/hashes/src/error.rs index 016a77975..791088877 100644 --- a/hashes/src/error.rs +++ b/hashes/src/error.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! Crate error type. //! diff --git a/hashes/src/hash160.rs b/hashes/src/hash160.rs index 47559c6b7..66d30b869 100644 --- a/hashes/src/hash160.rs +++ b/hashes/src/hash160.rs @@ -1,17 +1,5 @@ -// Bitcoin Hashes Library -// Written in 2018 by -// Andrew Poelstra +// SPDX-License-Identifier: CC0-1.0 // -// 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 . -// - // This module is largely copied from the rust-crypto ripemd.rs file; // while rust-crypto is licensed under Apache, that file specifically // was written entirely by Andrew Poelstra, who is re-licensing its diff --git a/hashes/src/hex.rs b/hashes/src/hex.rs index fd613abe0..31845a750 100644 --- a/hashes/src/hex.rs +++ b/hashes/src/hex.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! Hex encoding and decoding. //! diff --git a/hashes/src/hmac.rs b/hashes/src/hmac.rs index d5d2aae7e..425eb1d0d 100644 --- a/hashes/src/hmac.rs +++ b/hashes/src/hmac.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 // This module is largely copied from the rust-crypto ripemd.rs file; // while rust-crypto is licensed under Apache, that file specifically diff --git a/hashes/src/impls.rs b/hashes/src/impls.rs index 18bb2373d..5ff0179d5 100644 --- a/hashes/src/impls.rs +++ b/hashes/src/impls.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes Library -// Written in 2019 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! `std` / `core2` Impls. //! diff --git a/hashes/src/internal_macros.rs b/hashes/src/internal_macros.rs index 5bd5aff23..660ccf618 100644 --- a/hashes/src/internal_macros.rs +++ b/hashes/src/internal_macros.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Non-public macros macro_rules! arr_newtype_fmt_impl { diff --git a/hashes/src/lib.rs b/hashes/src/lib.rs index 4cc74cb14..7c5dfdc2a 100644 --- a/hashes/src/lib.rs +++ b/hashes/src/lib.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! Rust hashes library. //! diff --git a/hashes/src/ripemd160.rs b/hashes/src/ripemd160.rs index 2d4dc68d7..52994e44c 100644 --- a/hashes/src/ripemd160.rs +++ b/hashes/src/ripemd160.rs @@ -1,21 +1,4 @@ -// Bitcoin Hashes 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 . -// - -// This module is largely copied from the rust-crypto ripemd.rs file; -// while rust-crypto is licensed under Apache, that file specifically -// was written entirely by Andrew Poelstra, who is re-licensing its -// contents here as CC0. +// SPDX-License-Identifier: CC0-1.0 //! RIPEMD160 implementation. //! diff --git a/hashes/src/serde_macros.rs b/hashes/src/serde_macros.rs index b60dbe4c8..223ef5380 100644 --- a/hashes/src/serde_macros.rs +++ b/hashes/src/serde_macros.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! Macros for serde trait implementations, and supporting code. //! diff --git a/hashes/src/sha1.rs b/hashes/src/sha1.rs index c5557e09c..d7237a2c8 100644 --- a/hashes/src/sha1.rs +++ b/hashes/src/sha1.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! SHA1 implementation. //! diff --git a/hashes/src/sha256.rs b/hashes/src/sha256.rs index 5a020b4ef..642794099 100644 --- a/hashes/src/sha256.rs +++ b/hashes/src/sha256.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! SHA256 implementation. //! diff --git a/hashes/src/sha256d.rs b/hashes/src/sha256d.rs index e60b15c36..427a46a3b 100644 --- a/hashes/src/sha256d.rs +++ b/hashes/src/sha256d.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 //! SHA256d implementation (double SHA256). //! diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index 3c7e83a0f..8d8024153 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 //! SHA256t implementation (tagged SHA256). //! diff --git a/hashes/src/sha512.rs b/hashes/src/sha512.rs index cb53c1131..1f3ad7139 100644 --- a/hashes/src/sha512.rs +++ b/hashes/src/sha512.rs @@ -1,21 +1,4 @@ -// Bitcoin Hashes 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 . -// - -// This module is largely copied from the rust-crypto ripemd.rs file; -// while rust-crypto is licensed under Apache, that file specifically -// was written entirely by Andrew Poelstra, who is re-licensing its -// contents here as CC0. +// SPDX-License-Identifier: CC0-1.0 //! SHA512 implementation. //! diff --git a/hashes/src/sha512_256.rs b/hashes/src/sha512_256.rs index 82bf15577..664eece3b 100644 --- a/hashes/src/sha512_256.rs +++ b/hashes/src/sha512_256.rs @@ -1,21 +1,4 @@ -// Bitcoin Hashes Library -// Written in 2022 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 . -// - -// This module is largely copied from the rust-crypto ripemd.rs file; -// while rust-crypto is licensed under Apache, that file specifically -// was written entirely by Andrew Poelstra, who is re-licensing its -// contents here as CC0. +// SPDX-License-Identifier: CC0-1.0 //! SHA512_256 implementation. //! diff --git a/hashes/src/siphash24.rs b/hashes/src/siphash24.rs index 6b9b9eb96..a2dd13bfa 100644 --- a/hashes/src/siphash24.rs +++ b/hashes/src/siphash24.rs @@ -1,21 +1,4 @@ -// Bitcoin Hashes 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 . -// - -// This module is largely copied from the rust-siphash sip.rs file; -// while rust-siphash is licensed under Apache, that file specifically -// was written entirely by Steven Roose, who is re-licensing its -// contents here as CC0. +// SPDX-License-Identifier: CC0-1.0 //! SipHash 2-4 implementation. //! diff --git a/hashes/src/util.rs b/hashes/src/util.rs index 7ee657cad..cf43e8b86 100644 --- a/hashes/src/util.rs +++ b/hashes/src/util.rs @@ -1,16 +1,4 @@ -// Bitcoin Hashes 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 . -// +// SPDX-License-Identifier: CC0-1.0 #[macro_export] /// Adds hexadecimal formatting implementation of a trait `$imp` to a given type `$ty`. diff --git a/internals/src/error.rs b/internals/src/error.rs index 2f2133770..ff596734f 100644 --- a/internals/src/error.rs +++ b/internals/src/error.rs @@ -1,4 +1,3 @@ -// Written by the Rust Bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! # Error diff --git a/internals/src/hex/buf_encoder.rs b/internals/src/hex/buf_encoder.rs index d72cdea15..2d6793d98 100644 --- a/internals/src/hex/buf_encoder.rs +++ b/internals/src/hex/buf_encoder.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Implements a buffered encoder. //! //! The main type of this module is [`BufEncoder`] which provides buffered hex encoding. Such is diff --git a/internals/src/hex/display.rs b/internals/src/hex/display.rs index 81450d00a..6a75864a8 100644 --- a/internals/src/hex/display.rs +++ b/internals/src/hex/display.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Helpers for displaying bytes as hex strings. //! //! This module provides a trait for displaying things as hex as well as an implementation for diff --git a/internals/src/hex/mod.rs b/internals/src/hex/mod.rs index 0d55ec8e7..54fd04654 100644 --- a/internals/src/hex/mod.rs +++ b/internals/src/hex/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Helpers for encoding bytes as hex strings. pub mod buf_encoder; diff --git a/internals/src/lib.rs b/internals/src/lib.rs index 75b2ddf0f..9e794aeda 100644 --- a/internals/src/lib.rs +++ b/internals/src/lib.rs @@ -1,4 +1,3 @@ -// Written by the Rust Bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! # Rust Bitcoin Internal diff --git a/internals/src/macros.rs b/internals/src/macros.rs index 2df33c928..799730f03 100644 --- a/internals/src/macros.rs +++ b/internals/src/macros.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Various macros used by the Rust Bitcoin ecosystem. //!