Prevent duplicate output commitments (#1500)

* apply_output checks for duplicate commitment
not just a matching hash

* rustfmt
This commit is contained in:
Antioch Peverell
2018-09-11 19:36:00 +01:00
committed by GitHub
parent 596bf06556
commit 77c2408c4e
2 changed files with 10 additions and 11 deletions
+5
View File
@@ -1141,6 +1141,11 @@ impl OutputIdentifier {
}
}
/// Our commitment.
pub fn commitment(&self) -> Commitment {
self.commit
}
/// Build an output_identifier from an existing output.
pub fn from_output(output: &Output) -> OutputIdentifier {
OutputIdentifier {