Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
02163fab81 | |||
60a0ff1920 | |||
2f73f08030 | |||
303b8c0fc7 | |||
9cf8b7946a |
@ -6,3 +6,11 @@ build:
|
||||
sphinx:
|
||||
configuration: documentation/source/conf.py
|
||||
fail_on_warning: true
|
||||
|
||||
python:
|
||||
version: 3.7
|
||||
install:
|
||||
- method: pip
|
||||
path: .
|
||||
extra_requirements:
|
||||
- docs
|
||||
|
@ -1,8 +1,17 @@
|
||||
Hypercore_Crypto 0.0.1a3 (2019-11-14)
|
||||
=====================================
|
||||
|
||||
Bug Fixes
|
||||
---------
|
||||
|
||||
- Use the correct keyword argument when invoking ``crypto_generichash``.
|
||||
|
||||
|
||||
Hypercore_Crypto 0.0.1a2 (2019-11-03)
|
||||
=====================================
|
||||
|
||||
Improved Documentation
|
||||
---------------------
|
||||
----------------------
|
||||
|
||||
- New Sphinx theme.
|
||||
- Add a changelog.
|
||||
|
@ -1,7 +1,7 @@
|
||||
Introduction
|
||||
------------
|
||||
|
||||
The DatPy community is committed to providing an inclusive, safe, and
|
||||
The Datpy community is committed to providing an inclusive, safe, and
|
||||
collaborative environment for all participants, regardless of their gender,
|
||||
gender expression, race, ethnicity, religion, sexual orientation, sexual
|
||||
characteristics, physical appearance, disability, or age. We encourage every
|
||||
@ -9,16 +9,16 @@ participant to be themselves, and must respect the rights of others. The code
|
||||
of conduct is a set of guidelines that establishes shared values and ensures
|
||||
that behaviors that may harm participants are avoided.
|
||||
|
||||
The values of the DatPy community are focused on developing both our individual
|
||||
The values of the Datpy community are focused on developing both our individual
|
||||
and collective potential, supporting and empowering the most marginalized,
|
||||
mutual respect, and an anti-violence approach that favors support and
|
||||
collaboration among participants and the resolution of conflicts. A code of
|
||||
conduct helps us co-exist in a more positive way and provides individuals who
|
||||
are victims of negative behaviors with confidence that they will be supported
|
||||
by the organization and the DatPy community, who respects and stands behind the
|
||||
by the organization and the Datpy community, who respects and stands behind the
|
||||
code of conduct.
|
||||
|
||||
The DatPy community works towards providing a welcoming environment where
|
||||
The Datpy community works towards providing a welcoming environment where
|
||||
participants are treated with dignity and respect and are free to be
|
||||
themselves. We encourage all participants to approach the Librehosters network
|
||||
with an open and positive attitude, engaging constructively with others at all
|
||||
@ -92,7 +92,7 @@ Enforcement
|
||||
Overseeing the code of conduct
|
||||
==============================
|
||||
|
||||
The DatPy community, composed of volunteers, oversees the
|
||||
The Datpy community, composed of volunteers, oversees the
|
||||
code of conduct, including addressing all incident reports. Breaking the code
|
||||
of conduct may result in immediate expulsion from the Librehosters network.
|
||||
|
||||
|
@ -131,7 +131,7 @@ def discovery_key(public_key: bytes) -> bytes:
|
||||
|
||||
:param public_key: The public key for hashing
|
||||
"""
|
||||
return crypto_generichash(HYPERCORE, key=public_key)
|
||||
return crypto_generichash(HYPERCORE, k=public_key)
|
||||
|
||||
|
||||
def _to_unsigned_64_int(num: int) -> bytes:
|
||||
|
@ -4,7 +4,15 @@ import pytest
|
||||
from merkle_tree_stream import MerkleTreeNode
|
||||
from pysodium import crypto_sign_PUBLICKEYBYTES, crypto_sign_SECRETKEYBYTES
|
||||
|
||||
from hypercore_crypto import data, key_pair, parent, random_bytes, sign, verify
|
||||
from hypercore_crypto import (
|
||||
data,
|
||||
discovery_key,
|
||||
key_pair,
|
||||
parent,
|
||||
random_bytes,
|
||||
sign,
|
||||
verify,
|
||||
)
|
||||
|
||||
|
||||
def test_key_pair_seed_length():
|
||||
@ -59,3 +67,7 @@ def test_parent_digest():
|
||||
_parent.hex()
|
||||
== '43563406adba8b34b133fdca32d0a458c5be769615e01df30e6535ccd3c075f0'
|
||||
)
|
||||
|
||||
|
||||
def test_discovery_key_generated():
|
||||
assert discovery_key(random_bytes(32)) is not None
|
||||
|
Reference in New Issue
Block a user