A stream that generates a merkle tree based on the incoming data
Go to file
2020-02-22 17:13:32 +01:00
.github Add Github funding file 2019-11-20 09:58:22 +07:00
changelog Initialise the new module boilerplate 2019-07-08 11:40:40 +02:00
docs Use more standard docs folder 2019-11-25 11:20:13 +07:00
merkle_tree_stream Move naming to Generator (reflect reality) 2019-10-08 22:36:03 +02:00
test Appease the linter 2019-12-04 22:50:39 +07:00
.gitignore Initialise the new module boilerplate 2019-07-08 11:40:40 +02:00
.readthedocs.yml Also configure RTD to use new docs path 2019-11-26 10:40:11 +07:00
.travis.yml Mark envs with version only 2019-10-06 16:11:27 +02:00
CHANGELOG.rst New sphinx theme, better navigation and release docs 2019-11-03 16:38:39 +01:00
CODE_OF_CONDUCT.rst Fix link 2020-02-22 17:13:32 +01:00
CONTRIBUTING.rst New sphinx theme, better navigation and release docs 2019-11-03 16:38:39 +01:00
FUNDING.yml Add a Github funding file 2019-07-08 12:00:45 +02:00
LICENSE Initialise the new module boilerplate 2019-07-08 11:40:40 +02:00
MANIFEST.in Initialise the new module boilerplate 2019-07-08 11:40:40 +02:00
mypy.ini Initialise the new module boilerplate 2019-07-08 11:40:40 +02:00
pyproject.toml Make towncrier work 2019-10-06 16:12:27 +02:00
README.rst Add liberapay 2019-11-20 09:49:07 +07:00
setup.cfg Use more standard docs folder 2019-11-25 11:20:13 +07:00
setup.py Initialise the new module boilerplate 2019-07-08 11:40:40 +02:00
tox.ini Use more standard docs folder 2019-11-25 11:20:13 +07:00

.. _header:

******************
merkle-tree-stream
******************

.. image:: https://img.shields.io/badge/license-MIT-brightgreen.svg
   :target: LICENSE
   :alt: Repository license

.. image:: https://badge.fury.io/py/merkle-tree-stream.svg
   :target: https://badge.fury.io/py/merkle-tree-stream
   :alt: PyPI package

.. image:: https://travis-ci.com/datpy/merkle-tree-stream.svg?branch=master
   :target: https://travis-ci.com/datpy/merkle-tree-stream
   :alt: Travis CI result

.. image:: https://readthedocs.org/projects/merkle-tree-stream/badge/?version=latest
   :target: https://merkle-tree-stream.readthedocs.io/en/latest/
   :alt: Documentation status

.. image:: http://img.shields.io/liberapay/patrons/decentral1se.svg?logo=liberapay
   :target: https://liberapay.com/decentral1se
   :alt: Support badge

.. _introduction:

A stream that generates a merkle tree based on the incoming data
----------------------------------------------------------------

From `The Dat Protocol`_: 

.. _The Dat Protocol: https://datprotocol.github.io/book/ch01-01-flat-tree.html

    A hash tree or merkle tree is a tree in which every leaf node is labelled
    with the hash of a data block and every non-leaf node is labelled with the
    cryptographic hash of the labels of its child nodes. Merkle trees in Dat
    are specialized `flat trees`_ that contain the content of the archives.

    .. _Flat Trees: https://flat-tree.readthedocs.io/en/latest/

See the following for more:

  * The Dat Protocol: `Merkle Tree`_
  * The Dat Protocol: `Merkle Tree Stream`_

.. _Merkle Tree: https://datprotocol.github.io/book/ch01-02-merkle-tree.html
.. _Merkle Tree Stream: https://datprotocol.github.io/book/ch02-02-merkle-tree-stream.html

Part of the `Datpy`_ project.

.. _Datpy: https://datpy.decentral1.se/

A note on naming
================

For the purposes of uniformity and easy of discovery alongside the reference
implementation, we use the same module name as `merkle-tree-stream`_. However,
there is currently no stream implemented, only a generator is available. This
is because the reference implementation of Hypercore 7 makes use of the
generator only. A `stream`_ implementation may follow.

.. _merkle-tree-stream: https://github.com/mafintosh/merkle-tree-stream
.. _stream: https://docs.python.org/3/library/asyncio-stream.html

.. _documentation:

Documentation
*************

* `merkle-tree-stream.readthedocs.io`_

.. _merkle-tree-stream.readthedocs.io: https://merkle-tree-stream.readthedocs.io/