Support refunds as possible for invalidly received outputs on Serai

This commit is contained in:
Luke Parker
2023-11-08 11:26:28 -05:00
parent 11f66c741d
commit 06e627a562
7 changed files with 156 additions and 27 deletions

View File

@@ -77,6 +77,10 @@ impl OutputTrait<Monero> for Output {
EdwardsPoint(self.0.output.data.key - (EdwardsPoint::generator().0 * self.0.key_offset()))
}
fn presumed_origin(&self) -> Option<Address> {
None
}
fn balance(&self) -> Balance {
Balance { coin: SeraiCoin::Monero, amount: Amount(self.0.commitment().amount) }
}