]> git.bitcoin.ninja Git - rust-lightning/commit
Reparametrize ChannelSignerType by SignerProvider.
authorArik Sosman <git@arik.io>
Mon, 6 Nov 2023 05:51:15 +0000 (21:51 -0800)
committerArik Sosman <git@arik.io>
Tue, 28 Nov 2023 00:27:21 +0000 (16:27 -0800)
commitde4dd95d29f242820615ace081d5f3d1e3386ff8
treeb3d87c4cd1853eec78b96f1093cf91138c33745a
parentc6bcf75848cf6b0f0d1f873e211a711697c2b80a
Reparametrize ChannelSignerType by SignerProvider.

ChannelSignerType is an enum that contains variants of all currently
supported signer types. Given that those signer types are enumerated
as associated types in multiple places, it is prudent to denote one
type as the authority on signer types.

SignerProvider seemed like the best option. Thus, instead of
ChannelSignerType declaring the associated types itself, it simply
uses their definitions from SignerProvider.
lightning/src/ln/channel.rs
lightning/src/sign/taproot.rs
lightning/src/sign/type_resolver.rs