Impl<'a> Sub<&'a ValueCommitment> for ValueCommitment
This commit is contained in:
parent
de6994ad52
commit
cc44711204
|
@ -187,6 +187,14 @@ impl From<ValueCommitment> for [u8; 32] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> std::ops::Sub<&'a ValueCommitment> for ValueCommitment {
|
||||||
|
type Output = Self;
|
||||||
|
|
||||||
|
fn sub(self, rhs: &'a ValueCommitment) -> Self::Output {
|
||||||
|
self - *rhs
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl std::ops::Sub<ValueCommitment> for ValueCommitment {
|
impl std::ops::Sub<ValueCommitment> for ValueCommitment {
|
||||||
type Output = Self;
|
type Output = Self;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue