]> Untitled Git - bdk/commit
Use id() for DummySigner comparison
authorTobin Harding <me@tobin.cc>
Wed, 24 Feb 2021 02:23:17 +0000 (13:23 +1100)
committerTobin Harding <me@tobin.cc>
Wed, 24 Feb 2021 02:37:41 +0000 (13:37 +1100)
commita838c2bacc4e64308d8ba9cfb728bb412b4bdd0d
tree3fa2d64061d4170911eb9e05a5eea3646d83472b
parentd2a094aa4c23b46cff4735327a34471cfef5735e
Use id() for DummySigner comparison

If we give the `DummySigner` a valid identifier then we can use this to
do comparison.

Half the time we do comparison we only have a `dyn Signer` so we cannot
use `PartialEq`, add a helper function to check equality (this is in
test code so its not toooo ugly).

Thanks @afilini for the suggestion.
src/wallet/signer.rs