Since nilling the pubkey curve will lead to a nil-pointer exception if the key is later used for signature verification, we make sure to make a copy before nilling and spewing.
routing
The routing package implements authentication+validation of channel announcements, pruning of the channel graph, path finding within the network, sending outgoing payments into the network and synchronizing new peers to our channel graph state.
Installation and Updating
$ go get -u github.com/lightningnetwork/lnd/routing