-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be93316
commit 6e7bde0
Showing
35 changed files
with
161 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "descriptor-wallet" | ||
version = "0.4.0-rc.1" | ||
version = "0.4.0" | ||
license = "Apache-2.0" | ||
authors = ["Dr. Maxim Orlovsky <[email protected]>"] | ||
description = "Library for building descriptor-based bitcoin wallets" | ||
repository = "https://github.com/rust-bitcoin/descriptor-wallet" | ||
homepage = "https://lnp-bp.org" | ||
keywords = ["bitcoin", "wallet", "cryptocurrency", "cryptography", "bip32"] | ||
keywords = ["bitcoin", "wallet", "cryptocurrency", "descriptor", "miniscript"] | ||
categories = ["cryptography::cryptocurrencies", "encoding", "parsing"] | ||
readme = "README.md" | ||
edition = "2018" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use std::convert::{TryFrom, TryInto}; | ||
use std::fmt::{self, Display, Formatter}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use regex::Regex; | ||
use std::fmt::{self, Display, Formatter}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
mod components; | ||
mod path; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
#[cfg(feature = "serde")] | ||
use serde_with::{As, DisplayFromStr}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use std::fmt::{self, Display, Formatter}; | ||
use std::str::FromStr; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use std::cmp::Ordering; | ||
use std::convert::TryFrom; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use bitcoin::util::bip32::{ChildNumber, DerivationPath}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use std::str::FromStr; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
// Rust language amplification library providing multiple generic trait | ||
// implementations, type wrappers, derive macros and other language enhancements | ||
// | ||
// Written in 2019-2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// Martin Habovstiak <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
//! Blockchain-specific data types useful for wallets | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use std::fmt::{self, Display, Formatter}; | ||
use std::str::FromStr; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use amplify::Wrapper; | ||
use std::convert::TryFrom; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
use bitcoin::Script; | ||
use miniscript::{MiniscriptKey, TranslatePk2}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
#[cfg(feature = "serde")] | ||
use serde_with::{As, DisplayFromStr}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
// TODO: Move this back to BPro library | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
//! General workflow for working with ScriptPubkey* types: | ||
//! ```text | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// LNP/BP Core Library implementing LNPBP specifications & standards | ||
// Written in 2020 by | ||
// Descriptor wallet library extending bitcoin & miniscript functionality | ||
// by LNP/BP Association (https://lnp-bp.org) | ||
// Written in 2020-2021 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// 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 MIT License | ||
// You should have received a copy of the Apache-2.0 License | ||
// along with this software. | ||
// If not, see <https://opensource.org/licenses/MIT>. | ||
// If not, see <https://opensource.org/licenses/Apache-2.0>. | ||
|
||
#[cfg(feature = "serde")] | ||
use serde_with::{hex::Hex, As, DisplayFromStr}; | ||
|
Oops, something went wrong.