op-geth/whisper/whisperv6
Felix Lange e83c3ccc47
p2p/enode: improve IPv6 support, add ENR text representation (#19663)
* p2p/enr: add entries for for IPv4/IPv6 separation

This adds entry types for "ip6", "udp6", "tcp6" keys. The IP type stays
around because removing it would break a lot of code and force everyone
to care about the distinction.

* p2p/enode: track IPv4 and IPv6 address separately

LocalNode predicts the local node's UDP endpoint and updates the record.
This change makes it predict IPv4 and IPv6 endpoints separately since
they can now be in the record at the same time.

* p2p/enode: implement base64 text format
* all: switch to enode.Parse(...)

This allows passing base64-encoded node records to all the places that
previously accepted enode:// URLs. The URL format is still supported.

* cmd/bootnode, p2p: log node URL instead of ENR

...and return the base64 record in NodeInfo.
2019-06-07 15:31:00 +02:00
..
api.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
api_test.go whisperv6: remove duplicated code (#18015) 2018-12-03 14:15:22 +01:00
benchmarks_test.go whisper: get wnode to work with v6 (#16051) 2018-02-10 15:35:32 +02:00
config.go whisper: add light mode check to handshake (#16725) 2018-09-05 10:57:45 +02:00
doc.go whisper: remove unused error (#17315) 2018-08-07 15:16:56 +02:00
envelope.go whisper/whisperv6: fix PoW calculations to match the spec (#19330) 2019-03-26 10:23:59 +01:00
envelope_test.go whisper/whisperv6: fix PoW calculations to match the spec (#19330) 2019-03-26 10:23:59 +01:00
filter.go whisper: fixed broken partial topic filtering 2018-08-13 16:27:25 +02:00
filter_test.go all: simplify s[:] to s where s is a slice (#17673) 2018-09-14 22:07:13 +02:00
gen_criteria_json.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
gen_message_json.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
gen_newmessage_json.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
message.go ecies: drop randomness parameter from `PrivateKey.Decrypt` (#16374) 2018-03-26 13:46:18 +03:00
message_test.go whisper: get wnode to work with v6 (#16051) 2018-02-10 15:35:32 +02:00
peer.go whisper: add light mode check to handshake (#16725) 2018-09-05 10:57:45 +02:00
peer_test.go whisper: log errors on failed tests (#18134) 2018-11-20 10:08:02 +01:00
topic.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
topic_test.go whisper/whisperv6: initial commit (clone of v5) (#15324) 2017-11-03 21:29:49 +01:00
whisper.go whisper: add light mode check to handshake (#16725) 2018-09-05 10:57:45 +02:00
whisper_test.go whisper: fix loop in expire() (#17532) 2018-08-29 13:56:13 +03:00