File tree Expand file tree Collapse file tree 8 files changed +12
-65
lines changed Expand file tree Collapse file tree 8 files changed +12
-65
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: CC0-1.0
2+
13use bitcoin:: consensus:: encode:: deserialize;
24use bitcoin:: hashes:: hex:: FromHex ;
35use bitcoin:: psbt:: Psbt ;
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: CC0-1.0
2+
13use std:: collections:: BTreeMap ;
24use std:: str:: FromStr ;
35
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: CC0-1.0
2+
13use std:: collections:: HashMap ;
24use std:: str:: FromStr ;
35
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments