Add helper functions to verify node and channel annoucements
authorbenthecarman <benthecarman@live.com>
Thu, 18 May 2023 20:43:56 +0000 (15:43 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 8 Jul 2023 20:23:15 +0000 (20:23 +0000)
commit5cc400c37f67f500d360eacc4057dca41551a97d
tree9cbcf353ae76e9026774682fc795dab67c9f517a
parent498f2331459d8031031ef151a44c90d700aa8c7e
Add helper functions to verify node and channel annoucements

Right now the only real way to verify the node and channel
announcements is to call `update_node_from_announcement`/
`update_channel_from_announcement`. If you want to do some
processing before you add to your network graph then you need to
manually verify the signature. This adds some nice helper functions
to make it easier.

I tried to do the same for channel update but it did not seem as
easy so figured that is fine to punt on since I don't see many
people doing manual things with channel updates.
lightning/src/routing/gossip.rs