Skip to content

Commit 29b6272

Browse files
committed
Introduce SPDX identifiers
Recently we introduced SPDX identifiers into `rust-bitcoin`. In brief, SPDX identifiers are a way to fully describe the license of a source file in a single line. In addition to this we use an optional "written by" line to give attribution to the files original developer if they wish to have it. - Add links to the SPDX website in the readme - Add SPDX line to files with no license blurb - Shorten the author section to a single line while maintaining the authors (add Sanket's email address to one attribution line) - Remove all the licence information in each file and replace it with an SPDX ID (see https://spdx.dev/ids/#how)
1 parent b809ab5 commit 29b6272

40 files changed

+87
-388
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ architectural mismatches. If you have any questions or ideas you want to discuss
5353
please join us in
5454
[##miniscript](https://web.libera.chat/?channels=##miniscript) on Libera.
5555

56-
# Release Notes
56+
57+
## Release Notes
5758

5859
See [CHANGELOG.md](CHANGELOG.md).
60+
61+
62+
## Licensing
63+
64+
The code in this project is licensed under the [Creative Commons CC0 1.0
65+
Universal license](LICENSE). We use the [SPDX license list](https://spdx.org/licenses/) and [SPDX
66+
IDs](https://spdx.dev/ids/).

src/descriptor/bare.rs

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

144
//! # Bare Output Descriptors
155
//!

src/descriptor/checksum.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
//! Descriptor checksum
24
//!
35
//! This module contains a re-implementation of the function used by Bitcoin Core to calculate the

src/descriptor/key.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::fmt;
24
use core::str::FromStr;
35
#[cfg(feature = "std")]

src/descriptor/mod.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Miniscript
2-
// Written in 2018 by
3-
// Andrew Poelstra <[email protected]>
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+
// Written in 2018 by Andrew Poelstra <[email protected]>
2+
// SPDX-License-Identifier: CC0-1.0
143

154
//! # Output Descriptors
165
//!

src/descriptor/segwitv0.rs

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

144
//! # Segwit Output Descriptors
155
//!

src/descriptor/sh.rs

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

144
//! # P2SH Descriptors
155
//!

src/descriptor/sortedmulti.rs

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

144
//! # Sorted Multi
155
//!

src/descriptor/tr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Tapscript
1+
// SPDX-License-Identifier: CC0-1.0
2+
23
use core::cmp::{self, max};
34
use core::str::FromStr;
45
use core::{fmt, hash};

src/expression.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Miniscript
2-
// Written in 2019 by
3-
// Andrew Poelstra <[email protected]>
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+
// Written in 2019 by Andrew Poelstra <[email protected]>
2+
// SPDX-License-Identifier: CC0-1.0
143

154
//! # Function-like Expression Language
165
//!

0 commit comments

Comments
 (0)