datrs / hypercore

Secure, distributed, append-only log
https://docs.rs/hypercore
Apache License 2.0
333 stars 37 forks source link

Implements discoveryKey from hypercore-crypto #81

Closed bltavares closed 5 years ago

bltavares commented 5 years ago

Choose one: 🙋 feature

Checklist

Context

This commit implements the discoveryKey code from hypercore-crypto.

The code was commented out, so it was more of a matter of updating it to use the appropriate functions from Blake2b, and add a test scenario.

The test scenario in use is the same one presented on https://datprotocol.github.io/how-dat-works/

Semver Changes

Minor bump

khernyo commented 5 years ago

Thanks!