]> git.bitcoin.ninja Git - rust-lightning/commit
Wrap KeyPair by DerivedSigningPubkey
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 11 Aug 2023 18:11:14 +0000 (13:11 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 22 Aug 2023 00:14:27 +0000 (19:14 -0500)
commit239f22c0c9ea216919ef1ed34d00438fe9ca619d
tree46db38366c1beb5ee39d4c6aeb2eb65fcbd699de
parent1811ebff32e5f32aaf80e9f14bfeef12a47a35c6
Wrap KeyPair by DerivedSigningPubkey

InvoiceBuilder is parameterized by a SigningPubkeyStrategy, either
ExplicitSigningPubkey and DerivedSigningPubkey. It also holds an
Option<KeyPair>, which may be None and Some for those strategies,
respectively. This leads to methods for InvoiceBuilder parameterized by
DerivedSigningPubkey needing to blindly unwrap the Option<KeyPair>.
Instead, have DerivedSigningPubkey wrap KeyPair.
lightning/src/offers/invoice.rs