From 750476445539dcc157462c2529340d9345e83b65 Mon Sep 17 00:00:00 2001 From: "Roman S. Borschel" Date: Wed, 26 Aug 2020 11:55:28 +0200 Subject: [PATCH] Update core changelog. --- core/CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 170b206758a..cdad79ac01a 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,3 +1,18 @@ +# 0.22.0 [unreleased] + +- Remove `PeerId` compatibility mode for "identity" and SHA2 hashes. + Historically, before 0.12, `PeerId`s were incorrectly always hashed with SHA2. + Starting from version 0.13, rust-libp2p accepted both hashed and non-hashed keys as + input. Starting from version 0.16 rust-libp2p compared `PeerId`s of "identity" and + SHA2 hashes equal, which made it possible to connect through secio or noise to nodes + with an identity hash for the same peer ID. Starting from version 0.17, rust-libp2p + switched to not hashing the key (i.e. the correct behaviour) while retaining + equality between peer IDs using the "identity" hash and SHA2. Finally, with + this release, that will no longer be the case and it is assumed that peer IDs + whose length is less or equal to 42 bytes always use the "identity" hash so + two peer IDs are equal if and only if they use the same hash algorithm and + have the same hash digest. + # 0.21.0 [2020-08-18] - Remove duplicates when performing address translation