Add TaprootSigner variant to SignerProvider.
authorArik Sosman <git@arik.io>
Mon, 6 Nov 2023 05:36:59 +0000 (21:36 -0800)
committerArik Sosman <git@arik.io>
Tue, 28 Nov 2023 00:27:21 +0000 (16:27 -0800)
commitc6bcf75848cf6b0f0d1f873e211a711697c2b80a
tree148e3f67a685b779906320d61d87cf58eef30dee
parentf862aa9f5f95b89b3d202f425669a4c7dfcdce3e
Add TaprootSigner variant to SignerProvider.

Previously, SignerProvider was not laid out to support multiple signer
types. However, with the distinction between ECDSA and Taproot signers,
we now need to account for SignerProviders needing to support both.

This approach does mean that if ever we introduced another signer type
in the future, all implementers of SignerProvider would need to add it
as an associated type, and would also need to write a set of dummy
implementations for any Signer trait they do not wish to support.

For the time being, the TaprootSigner associated type is cfg-gated.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
fuzz/src/onion_message.rs
lightning/src/ln/channel.rs
lightning/src/sign/mod.rs
lightning/src/util/test_channel_signer.rs
lightning/src/util/test_utils.rs