Giter Site home page Giter Site logo

torao / banded-hash-tree Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 417 KB

bht: Reference implementation of Banded Hash Tree, an immutable and appendable hash tree (Merkle tree).

Home Page: https://hazm.at/mox/algorithm/structural-algorithm/banded-hash-tree/index.html

License: MIT License

Rust 100.00%
database data-structures blockchain hash merkletree merkle-tree

banded-hash-tree's Introduction

Banded Hash Tree

不変で木構造の完全な履歴を保持する効率的な追記指向のハッシュツリー (Merkle Tree) 構造である Banded Hash Tree について説明します (同様のデータ構造やアルゴリズム十分に調査したわけではないが、ここで述べるアルゴリズムに関する呼称や研究などを見つけられていないため、ここでは BHT という名前で呼びます)。これはログ構造のデータベースとして使用することができる。

Banded Hash Tree の特徴

  • 時系列データのように追加のみが行われるリスト構造。
  • データの追加位置を示すインデックスにツリー構造を構築する。このツリー構造は不変であり、ハッシュツリー (Merkle Tree) として使用する ことによってデータの破損や改ざんを検出することができる。
  • データの増加によってツリーは成長する。ただし、ツリー構造の完全な履歴を保持していることから、ある時点でのハッシュツリーをいつでも参照することが できる。
  • append, read, range scan, full scan 操作が可能。delete はハッシュ値のみを残し削除することはできる。

Append

append operations from 1 to 16 on the Banded Hash Tree

See Also

banded-hash-tree's People

Contributors

torao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.