Skip to content

Commit a836bcb

Browse files
committed
examples: Use SPDX licence identifiers
As we do in the main source directory; use SPDX license identifiers in all of the examples files. The SPDX license is a balance between minimal noise and having license coverage for those who want/like/need it. Note, removes the "written by" section if it uses Andrews name because he has stated elsewhere that this is ok. Leaves Thomas' attribution in there.
1 parent a797fcc commit a836bcb

File tree

8 files changed

+12
-65
lines changed

8 files changed

+12
-65
lines changed

examples/htlc.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-
// Thomas Eizinger <thomas@coblox.tech>
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 by Thomas Eizinger <thomas@coblox.tech>
2+
// SPDX-License-Identifier: CC0-1.0
143

154
//! Example: Create an HTLC with miniscript using the policy compiler
165

examples/parse.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Miniscript
2-
// Written in 2019 by
3-
// Andrew Poelstra <apoelstra@wpsoftware.net>
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
//! Example: Parsing a descriptor from a string.
164

examples/psbt.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 bitcoin::consensus::encode::deserialize;
24
use bitcoin::hashes::hex::FromHex;
35
use bitcoin::psbt::Psbt;

examples/psbt_sign_finalize.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 std::collections::BTreeMap;
24
use std::str::FromStr;
35

examples/sign_multisig.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Miniscript
2-
// Written in 2019 by
3-
// Andrew Poelstra <apoelstra@wpsoftware.net>
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
//! Example: Signing a 2-of-3 multisignature.
164

examples/taproot.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 std::collections::HashMap;
24
use std::str::FromStr;
35

examples/verify_tx.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Miniscript
2-
// Written in 2019 by
3-
// Andrew Poelstra <apoelstra@wpsoftware.net>
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
//! Example: Verifying a signed transaction.
164

examples/xpub_descriptors.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Miniscript
2-
// Written in 2019 by
3-
// Andrew Poelstra <apoelstra@wpsoftware.net>
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
//! Example: Parsing a xpub and getting an address.
164

0 commit comments

Comments
 (0)