Skip to content

Commit a2004cb

Browse files
committed
Constrain ECS type to EcdsaChannelSigner.
1 parent c1faff0 commit a2004cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/sign/type_resolver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use crate::sign::ChannelSigner;
1+
use crate::sign::{ChannelSigner, EcdsaChannelSigner};
22

33
pub(crate) enum ChannelSignerType<ECS: ChannelSigner> {
44
// in practice, this will only ever be an EcdsaChannelSigner (specifically, Writeable)
55
Ecdsa(ECS)
66
}
77

8-
impl<ECS: ChannelSigner> ChannelSignerType<ECS>{
8+
impl<ECS: EcdsaChannelSigner> ChannelSignerType<ECS>{
99
pub(crate) fn as_ref(&self) -> &dyn ChannelSigner {
1010
match self {
1111
ChannelSignerType::Ecdsa(ecs) => ecs

0 commit comments

Comments
 (0)