Skip to content

Commit be7f939

Browse files
committed
Merge #609: Introduce SPDX license identifiers
896e6c7 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: rust-bitcoin/rust-bitcoin#1816 also for more on SPDX see rust-bitcoin/rust-bitcoin#1076 ACKs for top commit: Kixunil: ACK 896e6c7 apoelstra: ACK 896e6c7 Tree-SHA512: 6f0ff7ec2632aed510df362e2fb9cf25fe02cae347bdd4a481804a3ea2b9e060c4ec2c85de3e9d1d40920e4b9c4eecfab127e61f3d076886fe8f2fb4bff9f5a7
2 parents 3baa398 + 896e6c7 commit be7f939

File tree

19 files changed

+27
-164
lines changed

19 files changed

+27
-164
lines changed

no_std_test/src/main.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Bitcoin secp256k1 bindings
2-
// Written in 2019 by
3-
// Elichai Turkel
4-
//
5-
// To the extent possible under law, the author(s) have dedicated all
6-
// copyright and related and neighboring rights to this software to
7-
// the public domain worldwide. This software is distributed without
8-
// any warranty.
9-
//
10-
// You should have received a copy of the CC0 Public Domain Dedication
11-
// along with this software.
12-
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
13-
//
1+
// SPDX-License-Identifier: CC0-1.0
142

153
//! # secp256k1 no-std test.
164
//! This binary is a short smallest rust code to produce a working binary *without libstd*.

secp256k1-sys/build.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Bitcoin secp256k1 bindings
2-
// Written in 2015 by
3-
// Andrew Poelstra
4-
//
5-
// To the extent possible under law, the author(s) have dedicated all
6-
// copyright and related and neighboring rights to this software to
7-
// the public domain worldwide. This software is distributed without
8-
// any warranty.
9-
//
10-
// You should have received a copy of the CC0 Public Domain Dedication
11-
// along with this software.
12-
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
13-
//
1+
// SPDX-License-Identifier: CC0-1.0
142

153
//! # Build script
164

secp256k1-sys/src/lib.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
// Bitcoin secp256k1 bindings
2-
// Written in 2014 by
3-
// Dawid Ciężarkiewicz
4-
// Andrew Poelstra
5-
//
6-
// To the extent possible under law, the author(s) have dedicated all
7-
// copyright and related and neighboring rights to this software to
8-
// the public domain worldwide. This software is distributed without
9-
// any warranty.
10-
//
11-
// You should have received a copy of the CC0 Public Domain Dedication
12-
// along with this software.
13-
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
14-
//
1+
// SPDX-License-Identifier: CC0-1.0
2+
153
//! # secp256k1-sys FFI bindings
164
//! Direct bindings to the underlying C library functions. These should
175
//! not be needed for most users.

secp256k1-sys/src/macros.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
// Bitcoin secp256k1 bindings
2-
// Written in 2014 by
3-
// Dawid Ciężarkiewicz
4-
// Andrew Poelstra
5-
//
6-
// To the extent possible under law, the author(s) have dedicated all
7-
// copyright and related and neighboring rights to this software to
8-
// the public domain worldwide. This software is distributed without
9-
// any warranty.
10-
//
11-
// You should have received a copy of the CC0 Public Domain Dedication
12-
// along with this software.
13-
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
14-
//
1+
// SPDX-License-Identifier: CC0-1.0
152

163
/// Implement methods and traits for types that contain an inner array.
174
#[macro_export]

secp256k1-sys/src/recovery.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
// Bitcoin secp256k1 bindings
2-
// Written in 2014 by
3-
// Dawid Ciężarkiewicz
4-
// Andrew Poelstra
5-
//
6-
// To the extent possible under law, the author(s) have dedicated all
7-
// copyright and related and neighboring rights to this software to
8-
// the public domain worldwide. This software is distributed without
9-
// any warranty.
10-
//
11-
// You should have received a copy of the CC0 Public Domain Dedication
12-
// along with this software.
13-
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
14-
//
1+
// SPDX-License-Identifier: CC0-1.0
152

163
//! # FFI of the recovery module
174

secp256k1-sys/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: CC0-1.0
2+
13
#![allow(non_camel_case_types)]
24

35
pub type c_int = i32;

src/constants.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
// Bitcoin secp256k1 bindings
2-
// Written in 2014 by
3-
// Dawid Ciężarkiewicz
4-
// Andrew Poelstra
5-
//
6-
// To the extent possible under law, the author(s) have dedicated all
7-
// copyright and related and neighboring rights to this software to
8-
// the public domain worldwide. This software is distributed without
9-
// any warranty.
10-
//
11-
// You should have received a copy of the CC0 Public Domain Dedication
12-
// along with this software.
13-
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
14-
//
1+
// SPDX-License-Identifier: CC0-1.0
152

163
//! Constants related to the API and the underlying curve.
174
//!

src/context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: CC0-1.0
2+
13
use core::marker::PhantomData;
24
use core::mem::ManuallyDrop;
35
use core::ptr::NonNull;

src/ecdh.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Bitcoin secp256k1 bindings
2-
// Written in 2015 by
3-
// Andrew Poelstra
4-
//
5-
// To the extent possible under law, the author(s) have dedicated all
6-
// copyright and related and neighboring rights to this software to
7-
// the public domain worldwide. This software is distributed without
8-
// any warranty.
9-
//
10-
// You should have received a copy of the CC0 Public Domain Dedication
11-
// along with this software.
12-
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
13-
//
1+
// SPDX-License-Identifier: CC0-1.0
142

153
//! Support for shared secret computations.
164
//!

src/ecdsa/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: CC0-1.0
2+
13
//! Structs and functionality related to the ECDSA signature algorithm.
24
//!
35

0 commit comments

Comments
 (0)