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: ACK1c3bbd4bf2
sanket1729: ACK1c3bbd4bf2
apoelstra: ACK1c3bbd4bf2
Tree-SHA512: c5ac05c5eb23b3b6a760f707c344b22f5871a4dedee4990b1840f57e4cee1d38560ff4507c354bbf29bc8ff05a179d95d7e100fcf19bd93c5362344a352c7b5a
This commit is contained in:
commit
936f2ee3bb
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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};
|
||||||
|
|
|
@ -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")]
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
|
@ -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};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
use core::str::FromStr;
|
use core::str::FromStr;
|
||||||
|
|
||||||
use hashes::Hash;
|
use hashes::Hash;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
//!
|
//!
|
||||||
//! BIP152 Compact Blocks network messages
|
//! BIP152 Compact Blocks network messages
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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).
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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).
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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`.
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Written by the Rust Bitcoin developers.
|
|
||||||
// SPDX-License-Identifier: CC0-1.0
|
// SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
//! # Error
|
//! # Error
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
//!
|
//!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue