We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2eeb1 commit 0acd802Copy full SHA for 0acd802
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