Skip to content

Commit 35ea57e

Browse files
committed
feat: add getter for network of keyring
1 parent e33e007 commit 35ea57e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/keyring/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ where
6666
})
6767
}
6868

69+
/// Get the [`Network`] corresponding to the [`KeyRing`]
70+
pub fn network(&self) -> &Network {
71+
&self.network
72+
}
73+
6974
/// Add a descriptor. Must not be [multipath](miniscript::Descriptor::is_multipath).
7075
/// This method returns [`DescriptorError`] if the provided descriptor is multipath, contains
7176
/// hardened derivation steps (in case of public descriptors) or fails miniscripts sanity

0 commit comments

Comments
 (0)