Remove OnionV2 parsing support 2021-12-no-torv2
authorMatt Corallo <git@bluematt.me>
Mon, 6 Dec 2021 00:12:35 +0000 (00:12 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 6 Dec 2021 00:12:35 +0000 (00:12 +0000)
commit361639decf9c98ff43d228415e3cab5955e2b973
tree4bc59cb4e99374d3cc0a8254c55311b6d3da131d
parentea89286569c95c4eb9a692f9aaf9f1e647d012ef
Remove OnionV2 parsing support

OnionV2s don't (really) work on Tor anymore anyway, and the field
is set for removal in the BOLTs [1]. Sadly because of the way
addresses are parsed we have to continue to understand that type 3
addresses are 12 bytes long. Thus, for simplicity we keep the
`OnionV2` enum variant around and just make it an opaque 12 bytes,
with the documentation updated to note the deprecation.

[1] https://github.com/lightning/bolts/pull/940
lightning/src/ln/msgs.rs
lightning/src/util/ser.rs