Skip to content

Commit

Permalink
Update core changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman S. Borschel committed Aug 26, 2020
1 parent ef70db9 commit 7504764
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7504764

Please sign in to comment.