Split `NetworkGraph` message handling fns into unsigned and signed
authorMatt Corallo <git@bluematt.me>
Tue, 24 Nov 2020 18:38:39 +0000 (13:38 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 24 Nov 2020 21:33:33 +0000 (16:33 -0500)
commit3b6f7f1199a2e3a3f69583a2eaf501c403fe1a53
tree5a694600566a67f339eb32c9f7819938339bf167
parentd9c03f26f9d52ca96bc889eae64087a690ff1a22
Split `NetworkGraph` message handling fns into unsigned and signed

This takes the now-public `NetworkGraph` message handling functions
and splits them all into two methods - one which takes a required
Secp256k1 context and verifies signatures and one which takes only
the unsigned part of the message and does not take a Secp256k1
context.

This both clarifies the public API as well as simplifies it, all
without duplicating code.

Finally, this adds an assertion in the Router fuzzer to make sure
the constants used for message deserialization are correct.
fuzz/src/router.rs
lightning/src/routing/network_graph.rs