Skip to content

krisajenkins/elm-merkletree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merkle Tree

This is an implemenation of the Merkle tree data structure in Elm. It's implemented as an immutable balanced binary hash tree, which guarantees for logarithmic inserts. Default hash function is SHA-256 but others can be used. Hash functions are specified on initiation and can't be changed afterwards which ensures data consistency.

Source: Stack Exchange

To use, simply import the main namespace:

import Merkle 

or specific type and/or function(s):

import Merkle
    exposing
        ( Tree
        , initialize
        , singleton
        , fromList
        , insert
        , insertFromList
        , get
        , depth
        , flatten
        , contains
        , isValid
        , toJson
        , fromJson
        )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published