Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
02163fab81 | |||
60a0ff1920 | |||
2f73f08030 | |||
303b8c0fc7 | |||
9cf8b7946a |
@ -6,3 +6,11 @@ build:
|
|||||||
sphinx:
|
sphinx:
|
||||||
configuration: documentation/source/conf.py
|
configuration: documentation/source/conf.py
|
||||||
fail_on_warning: true
|
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)
|
Hypercore_Crypto 0.0.1a2 (2019-11-03)
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
Improved Documentation
|
Improved Documentation
|
||||||
---------------------
|
----------------------
|
||||||
|
|
||||||
- New Sphinx theme.
|
- New Sphinx theme.
|
||||||
- Add a changelog.
|
- Add a changelog.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Introduction
|
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,
|
collaborative environment for all participants, regardless of their gender,
|
||||||
gender expression, race, ethnicity, religion, sexual orientation, sexual
|
gender expression, race, ethnicity, religion, sexual orientation, sexual
|
||||||
characteristics, physical appearance, disability, or age. We encourage every
|
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
|
of conduct is a set of guidelines that establishes shared values and ensures
|
||||||
that behaviors that may harm participants are avoided.
|
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,
|
and collective potential, supporting and empowering the most marginalized,
|
||||||
mutual respect, and an anti-violence approach that favors support and
|
mutual respect, and an anti-violence approach that favors support and
|
||||||
collaboration among participants and the resolution of conflicts. A code of
|
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
|
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
|
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.
|
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
|
participants are treated with dignity and respect and are free to be
|
||||||
themselves. We encourage all participants to approach the Librehosters network
|
themselves. We encourage all participants to approach the Librehosters network
|
||||||
with an open and positive attitude, engaging constructively with others at all
|
with an open and positive attitude, engaging constructively with others at all
|
||||||
@ -92,7 +92,7 @@ Enforcement
|
|||||||
Overseeing the code of conduct
|
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
|
code of conduct, including addressing all incident reports. Breaking the code
|
||||||
of conduct may result in immediate expulsion from the Librehosters network.
|
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
|
: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:
|
def _to_unsigned_64_int(num: int) -> bytes:
|
||||||
|
@ -4,7 +4,15 @@ import pytest
|
|||||||
from merkle_tree_stream import MerkleTreeNode
|
from merkle_tree_stream import MerkleTreeNode
|
||||||
from pysodium import crypto_sign_PUBLICKEYBYTES, crypto_sign_SECRETKEYBYTES
|
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():
|
def test_key_pair_seed_length():
|
||||||
@ -59,3 +67,7 @@ def test_parent_digest():
|
|||||||
_parent.hex()
|
_parent.hex()
|
||||||
== '43563406adba8b34b133fdca32d0a458c5be769615e01df30e6535ccd3c075f0'
|
== '43563406adba8b34b133fdca32d0a458c5be769615e01df30e6535ccd3c075f0'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def test_discovery_key_generated():
|
||||||
|
assert discovery_key(random_bytes(32)) is not None
|
||||||
|
Reference in New Issue
Block a user