Merge rust-bitcoin/rust-secp256k1#609: Introduce SPDX license identifiers

896e6c7f2d Introduce SPDX license identifiers (Tobin C. Harding)

Pull request description:

  Licenses are boring as hell, so is are all the comments at the top of each file. This patch makes no comment on the merit of license comments in each file, rather this patch reduces the license comment to the minimum possible with no loss of meaning - an SPDX license identifier.

  Note also please that we remove the "written by" comments as well for the following reasons (discussed recently on rust-bitcoin repo):

  - they are not descriptive because many devs contributed
  - they have a tendency to include the wrong date because of cut'n'pasta
  - all this info is in the git history

  ref: https://spdx.dev/ids/#how

  cc elichai because this PR removes your name but you were not explicitly part of the conversation on `rust-bitcoin` about this topic. Here is the issue: https://github.com/rust-bitcoin/rust-bitcoin/issues/1816 also for more on SPDX see https://github.com/rust-bitcoin/rust-bitcoin/pull/1076

ACKs for top commit:
  Kixunil:
    ACK 896e6c7f2d
  apoelstra:
    ACK 896e6c7f2d

Tree-SHA512: 6f0ff7ec2632aed510df362e2fb9cf25fe02cae347bdd4a481804a3ea2b9e060c4ec2c85de3e9d1d40920e4b9c4eecfab127e61f3d076886fe8f2fb4bff9f5a7
This commit is contained in:
Andrew Poelstra 2023-05-04 17:59:29 +00:00
commit be7f9398fa
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
19 changed files with 27 additions and 164 deletions

View File

@ -1,16 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2019 by
// Elichai Turkel
//
// 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/>.
//
//! # secp256k1 no-std test. //! # secp256k1 no-std test.
//! This binary is a short smallest rust code to produce a working binary *without libstd*. //! This binary is a short smallest rust code to produce a working binary *without libstd*.

View File

@ -1,16 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2015 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! # Build script //! # Build script

View File

@ -1,17 +1,5 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! # secp256k1-sys FFI bindings //! # secp256k1-sys FFI bindings
//! Direct bindings to the underlying C library functions. These should //! Direct bindings to the underlying C library functions. These should
//! not be needed for most users. //! not be needed for most users.

View File

@ -1,17 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
/// Implement methods and traits for types that contain an inner array. /// Implement methods and traits for types that contain an inner array.
#[macro_export] #[macro_export]

View File

@ -1,17 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! # FFI of the recovery module //! # FFI of the recovery module

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
pub type c_int = i32; pub type c_int = i32;

View File

@ -1,17 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Constants related to the API and the underlying curve. //! Constants related to the API and the underlying curve.
//! //!

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::marker::PhantomData; use core::marker::PhantomData;
use core::mem::ManuallyDrop; use core::mem::ManuallyDrop;
use core::ptr::NonNull; use core::ptr::NonNull;

View File

@ -1,16 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2015 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Support for shared secret computations. //! Support for shared secret computations.
//! //!

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Structs and functionality related to the ECDSA signature algorithm. //! Structs and functionality related to the ECDSA signature algorithm.
//! //!

View File

@ -1,17 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Provides a signing function that allows recovering the public key from the //! Provides a signing function that allows recovering the public key from the
//! signature. //! signature.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Implements [`SerializedSignature`] and related types. //! Implements [`SerializedSignature`] and related types.
//! //!
//! DER-serialized signatures have the issue that they can have different lengths. //! DER-serialized signatures have the issue that they can have different lengths.

View File

@ -1,17 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Public and secret keys. //! Public and secret keys.
//! //!

View File

@ -1,17 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Rust bindings for Pieter Wuille's secp256k1 library, which is used for //! Rust bindings for Pieter Wuille's secp256k1 library, which is used for
//! fast and accurate manipulation of ECDSA signatures on the secp256k1 //! fast and accurate manipulation of ECDSA signatures on the secp256k1

View File

@ -1,17 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2014 by
// Dawid Ciężarkiewicz
// 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 <http://creativecommons.org/publicdomain/zero/1.0/>.
//
/// Implement methods and traits for types that contain an inner array. /// Implement methods and traits for types that contain an inner array.
#[macro_export] #[macro_export]

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Provides [`Scalar`] and related types. //! Provides [`Scalar`] and related types.
//! //!
//! In elliptic curve cryptography scalars are non-point values that can be used to multiply //! In elliptic curve cryptography scalars are non-point values that can be used to multiply

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Support for schnorr signatures. //! Support for schnorr signatures.
//! //!

View File

@ -1,16 +1,4 @@
// Bitcoin secp256k1 bindings // SPDX-License-Identifier: CC0-1.0
// Written in 2021 by
// Maxim Orlovsky <orlovsky@pandoracore.com>
//
// 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/>.
//
//! Helpers for displaying secret values //! Helpers for displaying secret values

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::fmt; use core::fmt;
use core::marker::PhantomData; use core::marker::PhantomData;
use core::str::{self, FromStr}; use core::str::{self, FromStr};