update changelog and fix docs
This commit is contained in:
parent
14ae64e09d
commit
d837a762fc
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Descriptor
|
||||||
|
#### Added
|
||||||
|
- Added ability to analyze a `PSBT` to check which and how many signatures are already available
|
||||||
|
|
||||||
### Misc
|
### Misc
|
||||||
#### Changed
|
#### Changed
|
||||||
- Updated `electrum-client` to version `0.7`
|
- Updated `electrum-client` to version `0.7`
|
||||||
|
@ -452,7 +452,7 @@ pub struct Policy {
|
|||||||
/// Type of this policy node
|
/// Type of this policy node
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub item: SatisfiableItem,
|
pub item: SatisfiableItem,
|
||||||
/// How a much given PSBT already satisfies this polcy node **(currently unused)**
|
/// How much a given PSBT already satisfies this policy node in terms of signatures
|
||||||
pub satisfaction: Satisfaction,
|
pub satisfaction: Satisfaction,
|
||||||
/// How the wallet's descriptor can satisfy this policy node
|
/// How the wallet's descriptor can satisfy this policy node
|
||||||
pub contribution: Satisfaction,
|
pub contribution: Satisfaction,
|
||||||
@ -712,7 +712,7 @@ impl Policy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// fill self.satisfaction with what we already have in the PSBT
|
/// fill `self.satisfaction` with the signatures we already have in the PSBT
|
||||||
pub fn fill_satisfactions(
|
pub fn fill_satisfactions(
|
||||||
&mut self,
|
&mut self,
|
||||||
psbt: &PSBT,
|
psbt: &PSBT,
|
||||||
@ -744,6 +744,7 @@ impl Policy {
|
|||||||
let mut index = 0;
|
let mut index = 0;
|
||||||
derived_desc.for_each_key(|k| {
|
derived_desc.for_each_key(|k| {
|
||||||
if satisfier.lookup_sig(&k.as_key().to_public_key()).is_some() {
|
if satisfier.lookup_sig(&k.as_key().to_public_key()).is_some() {
|
||||||
|
//TODO check signature verifies
|
||||||
let _ = self.satisfaction.add(
|
let _ = self.satisfaction.add(
|
||||||
&Satisfaction::Complete {
|
&Satisfaction::Complete {
|
||||||
condition: Default::default(),
|
condition: Default::default(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user