Write more docs, make TxBuilder::with_recipients take Scripts

This commit is contained in:
Alekos Filini committed 2020-09-04 16:07:41 +02:00
1 parent 7065c1fed6
commit eee75219e0
13 files changed
+419 -100

No files matched your search

+8 -4
View File
@@ -403,12 +403,16 @@ impl From<bool> for Satisfaction {
/// Descriptor spending policy
#[derive(Debug, Clone, Serialize)]
pub struct Policy {
id: String,
/// Identifier for this policy node
pub id: String,
/// Type of this policy node
#[serde(flatten)]
item: SatisfiableItem,
satisfaction: Satisfaction,
contribution: Satisfaction,
pub item: SatisfiableItem,
/// How a much given PSBT already satisfies this polcy node **(currently unused)**
pub satisfaction: Satisfaction,
/// How the wallet's descriptor can satisfy this policy node
pub contribution: Satisfaction,
}
/// An extra condition that must be satisfied but that is out of control of the user