-impl_writeable!(OutPoint, 0, { txid, index });
+impl core::fmt::Display for OutPoint {
+ fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
+ write!(f, "{}:{}", self.txid, self.index)
+ }
+}
+
+impl_writeable!(OutPoint, { txid, index });