Swiftpack.co -  swift-tree/MerkleTree as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Merkle Tree respecting Tree Hash EXchange format (THEX) in Swift.
.package(url: "https://github.com/swift-tree/MerkleTree.git", from: "0.1.1")


Merkle Tree respecting Tree Hash EXchange format (THEX) in Swift.

Balanced Trees

              /      \
             /        \
       E=IH(A+B)       F=IH(C+D)
       /     \           /    \
      /       \         /      \
A=LH(S1)  B=LH(S2) C=LH(S3)  D=LH(S4)

Unbalanced Trees

                     /        \
                    /          \
             H=IH(F+G)          E
             /       \           \
            /         \           \
      F=IH(A+B)       G=IH(C+D)     E
      /     \           /     \      \
     /       \         /       \      \
A=LH(S1)  B=LH(S2) C=LH(S3)  D=LH(S4) E=LH(S5)

Swift Package Manager

The Swift Package Manager automates the distribution of Swift code. To use MerkleTree with SPM, add a dependency to your Package.swift file:

let package = Package(
    dependencies: [
        .package(url: "https://github.com/swift-tree/MerkleTree.git", ...)


Erk Ekin


Stars: 2
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API