Skip to content

blake2 support#40

Merged
vmx merged 4 commits into
multiformats:masterfrom
austinabell:blake2
Dec 20, 2019
Merged

blake2 support#40
vmx merged 4 commits into
multiformats:masterfrom
austinabell:blake2

Conversation

@austinabell

Copy link
Copy Markdown
Contributor

PR ref: #39

Updates the blake2 dependencies per comment: #39 (comment)

Let me know if anything else needs to change as this would be nice to get in

ebkalderon and others added 4 commits November 8, 2019 19:09
This commit is a backport of rust-libp2p commit [ad0807b3f3588f2a3f507d6e948932a476ca0753].

[ad0807b3f3588f2a3f507d6e948932a476ca0753]: libp2p/rust-libp2p@ad0807b

Original commit message:

---

Use unsigned-varints, add BLAKE2 support in multihash (#525)

* Add support for unsigned varints

* Depend on unsigned-varint 0.2 without default features

* Change hash code type from u8 to u64

* Fix hash codes and enum variants for BLAKE2 to fit the standard (see #524)

* Run cargo fmt on crate

* Expand hash_types test to include all variants

* Add support for BLAKE2b-512 and BLAKE2s-256

* Depend on blake2 crate 0.7 with no default features

* Update encode! macro for support for blake2 crate

* Update all tests to include BLAKE2b-512 and BLAKE2s-256

* Reduce hash code size from u64 to u16

* Fix typo in doc comment

* Bump tiny-keccak to version 1.4

* Remove unnecessary default-features = false in Cargo.toml

@vmx vmx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks a lot!

@dignifiedquire dignifiedquire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vmx vmx merged commit 00f4e30 into multiformats:master Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants