We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63e62b4 commit 7d1954cCopy full SHA for 7d1954c
1 file changed
crates/wallet/src/types.rs
@@ -12,6 +12,7 @@
12
use alloc::boxed::Box;
13
use chain::{ChainPosition, ConfirmationBlockTime};
14
use core::convert::AsRef;
15
+use core::fmt;
16
17
use bitcoin::transaction::{OutPoint, Sequence, TxOut};
18
use bitcoin::{psbt, Weight};
@@ -37,6 +38,15 @@ impl KeychainKind {
37
38
}
39
40
41
+impl fmt::Display for KeychainKind {
42
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
43
+ match self {
44
+ KeychainKind::External => write!(f, "External"),
45
+ KeychainKind::Internal => write!(f, "Internal"),
46
+ }
47
48
+}
49
+
50
impl AsRef<[u8]> for KeychainKind {
51
fn as_ref(&self) -> &[u8] {
52
match self {
0 commit comments