Prevent duplicate output commitments (#1500)
* apply_output checks for duplicate commitment not just a matching hash * rustfmt
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user