Merge rust-bitcoin/rust-bitcoin#1825: Simplify per-file license comments

1c3bbd4bf2 internals: Remove attribution from all files (Tobin C. Harding)
99673ab5c4 hashes: Introduce SPDX license identifiers (Tobin C. Harding)
984fe69448 bitcoin: Remove attribution from all files (Tobin C. Harding)

Pull request description:

  Please note, whether or not we need a per-file license comment is out of scope for this PR. This PR leaves us with the most simple per-file solution possible and leaves the merit of per-file license comment to be discussed on another day.

  Simplify the per-file license stuff by doing:

  - Remove the attribution line from each file.

      Currently we have a mishmash of attribution lines accompanying the SPDX identifier. These lines are basically meaningless because:

      - The date is often wrong
      - The original author attributed is not the only contributor to a file
      - The term "rust bitcoin developers" is basically just noise

  - Introduce SPDX license identifiers into `hashes` and remove attribution line (ie, make `hashes` uniform with `bitcoin`)

  Required before merge please:

  - [x] ack from apoelstra because as the library original author many of the changes in this PR remove his name
  - [x] ack from Kixunil because he had some concerns in the issue descussion

  Fix: #1816

ACKs for top commit:
  Kixunil:
    ACK 1c3bbd4bf2
  sanket1729:
    ACK 1c3bbd4bf2
  apoelstra:
    ACK 1c3bbd4bf2

Tree-SHA512: c5ac05c5eb23b3b6a760f707c344b22f5871a4dedee4990b1840f57e4cee1d38560ff4507c354bbf29bc8ff05a179d95d7e100fcf19bd93c5362344a352c7b5a
This commit is contained in:
Andrew Poelstra 2023-05-01 19:47:58 +00:00
commit 936f2ee3bb
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
71 changed files with 44 additions and 269 deletions

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin addresses. //! Bitcoin addresses.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Base58 encoder and decoder. //! Base58 encoder and decoder.

View File

@ -1,4 +1,3 @@
// Written in 2019 by Tammas Blummer.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
// This module was largely copied from https://github.com/rust-bitcoin/murmel/blob/master/src/blockfilter.rs // This module was largely copied from https://github.com/rust-bitcoin/murmel/blob/master/src/blockfilter.rs

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! BIP32 implementation. //! BIP32 implementation.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin blocks. //! Bitcoin blocks.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Blockdata constants. //! Blockdata constants.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Implements `FeeRate` and assoctiated features. //! Implements `FeeRate` and assoctiated features.
use core::fmt; use core::fmt;

View File

@ -1,4 +1,3 @@
// Rust Bitcoin Library - Written by the rust-bitcoin developers.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Provides type [`LockTime`] that implements the logic around nLockTime/OP_CHECKLOCKTIMEVERIFY. //! Provides type [`LockTime`] that implements the logic around nLockTime/OP_CHECKLOCKTIMEVERIFY.

View File

@ -1,4 +1,3 @@
// Rust Bitcoin Library - Written by the rust-bitcoin developers.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Provides absolute and relative locktimes. //! Provides absolute and relative locktimes.

View File

@ -1,4 +1,3 @@
// Rust Bitcoin Library - Written by the rust-bitcoin developers.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Provides type [`LockTime`] that implements the logic around nSequence/OP_CHECKSEQUENCEVERIFY. //! Provides type [`LockTime`] that implements the logic around nSequence/OP_CHECKSEQUENCEVERIFY.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin block data. //! Bitcoin block data.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin script opcodes. //! Bitcoin script opcodes.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
use core::convert::{TryFrom, TryInto}; use core::convert::{TryFrom, TryInto};

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
#[cfg(feature = "bitcoinconsensus")] #[cfg(feature = "bitcoinconsensus")]

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
use core::convert::TryInto; use core::convert::TryInto;

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin scripts. //! Bitcoin scripts.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
#[cfg(doc)] #[cfg(doc)]

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Contains `PushBytes` & co //! Contains `PushBytes` & co
use core::borrow::{Borrow, BorrowMut}; use core::borrow::{Borrow, BorrowMut};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::str::FromStr; use core::str::FromStr;
use hashes::Hash; use hashes::Hash;

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin transactions. //! Bitcoin transactions.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Implements `Weight` and associated features. //! Implements `Weight` and associated features.
use core::fmt; use core::fmt;

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin consensus-encodable types. //! Bitcoin consensus-encodable types.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin consensus parameters. //! Bitcoin consensus parameters.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Serde serialization via consensus encoding //! Serde serialization via consensus encoding
//! //!
//! This provides functions for (de)serializing any type as consensus-encoded bytes. //! This provides functions for (de)serializing any type as consensus-encoded bytes.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! ECDSA Bitcoin signatures. //! ECDSA Bitcoin signatures.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin keys. //! Bitcoin keys.

View File

@ -1,4 +1,3 @@
// Rust Bitcoin Library - Written by the rust-bitcoin developers.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Cryptography //! Cryptography

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin taproot keys. //! Bitcoin taproot keys.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Contains error types and other error handling tools. //! Contains error types and other error handling tools.
use core::fmt; use core::fmt;

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin hash types. //! Bitcoin hash types.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Internal macros. //! Internal macros.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! # Rust Bitcoin Library //! # Rust Bitcoin Library

View File

@ -1,4 +1,3 @@
// Written by John L. Jegutanis
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
// //
// This code was translated from merkleblock.h, merkleblock.cpp and pmt_tests.cpp // This code was translated from merkleblock.h, merkleblock.cpp and pmt_tests.cpp

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin merkle tree functions. //! Bitcoin merkle tree functions.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin network addresses. //! Bitcoin network addresses.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin network constants. //! Bitcoin network constants.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin network messages. //! Bitcoin network messages.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin blockdata network messages. //! Bitcoin blockdata network messages.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! //!
//! BIP152 Compact Blocks network messages //! BIP152 Compact Blocks network messages
//! //!

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin network-related network messages. //! Bitcoin network-related network messages.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin network support. //! Bitcoin network support.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::convert::TryFrom; use core::convert::TryFrom;
use core::fmt; use core::fmt;
use core::str::FromStr; use core::str::FromStr;

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin policy. //! Bitcoin policy.

View File

@ -1,4 +1,3 @@
// Rust Bitcoin Library - Written by the rust-bitcoin developers.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Proof-of-work related integer types. //! Proof-of-work related integer types.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Signature //! Signature

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Bitcoin serde macros. //! Bitcoin serde macros.

View File

@ -1,4 +1,3 @@
// Written in 2014 by Andrew Poelstra <apoelstra@wpsoftware.net>
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Utility functions. //! Utility functions.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Useful comparison functions. //! Useful comparison functions.
/// Compare two slices for equality in fixed time. Panics if the slices are of non-equal length. /// Compare two slices for equality in fixed time. Panics if the slices are of non-equal length.

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Crate error type. //! Crate error type.
//! //!

View File

@ -1,17 +1,5 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
// //
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// This module is largely copied from the rust-crypto ripemd.rs file; // This module is largely copied from the rust-crypto ripemd.rs file;
// while rust-crypto is licensed under Apache, that file specifically // while rust-crypto is licensed under Apache, that file specifically
// was written entirely by Andrew Poelstra, who is re-licensing its // was written entirely by Andrew Poelstra, who is re-licensing its

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Hex encoding and decoding. //! Hex encoding and decoding.
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// This module is largely copied from the rust-crypto ripemd.rs file; // This module is largely copied from the rust-crypto ripemd.rs file;
// while rust-crypto is licensed under Apache, that file specifically // while rust-crypto is licensed under Apache, that file specifically

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2019 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! `std` / `core2` Impls. //! `std` / `core2` Impls.
//! //!

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Non-public macros //! Non-public macros
macro_rules! arr_newtype_fmt_impl { macro_rules! arr_newtype_fmt_impl {

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Rust hashes library. //! Rust hashes library.
//! //!

View File

@ -1,21 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// 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.
//! RIPEMD160 implementation. //! RIPEMD160 implementation.
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Macros for serde trait implementations, and supporting code. //! Macros for serde trait implementations, and supporting code.
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! SHA1 implementation. //! SHA1 implementation.
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! SHA256 implementation. //! SHA256 implementation.
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! SHA256d implementation (double SHA256). //! SHA256d implementation (double SHA256).
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! SHA256t implementation (tagged SHA256). //! SHA256t implementation (tagged SHA256).
//! //!

View File

@ -1,21 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// 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.
//! SHA512 implementation. //! SHA512 implementation.
//! //!

View File

@ -1,21 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// 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.
//! SHA512_256 implementation. //! SHA512_256 implementation.
//! //!

View File

@ -1,21 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
// 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.
//! SipHash 2-4 implementation. //! SipHash 2-4 implementation.
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin Hashes Library // SPDX-License-Identifier: CC0-1.0
// Written in 2018 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
//
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
#[macro_export] #[macro_export]
/// Adds hexadecimal formatting implementation of a trait `$imp` to a given type `$ty`. /// Adds hexadecimal formatting implementation of a trait `$imp` to a given type `$ty`.

View File

@ -1,4 +1,3 @@
// Written by the Rust Bitcoin developers.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! # Error //! # Error

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Implements a buffered encoder. //! Implements a buffered encoder.
//! //!
//! The main type of this module is [`BufEncoder`] which provides buffered hex encoding. Such is //! The main type of this module is [`BufEncoder`] which provides buffered hex encoding. Such is

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Helpers for displaying bytes as hex strings. //! Helpers for displaying bytes as hex strings.
//! //!
//! This module provides a trait for displaying things as hex as well as an implementation for //! This module provides a trait for displaying things as hex as well as an implementation for

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Helpers for encoding bytes as hex strings. //! Helpers for encoding bytes as hex strings.
pub mod buf_encoder; pub mod buf_encoder;

View File

@ -1,4 +1,3 @@
// Written by the Rust Bitcoin developers.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! # Rust Bitcoin Internal //! # Rust Bitcoin Internal

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Various macros used by the Rust Bitcoin ecosystem. //! Various macros used by the Rust Bitcoin ecosystem.
//! //!