C# Class Coinium.Core.Crypto.MerkleTree

Merkle tree builder. Python implementation: http://runnable.com/U3HnDaMrJFk3gkGW/bitcoin-block-merkle-root-286819-for-python
Mostra file Open project: Ziftr/CoiniumServ

Public Methods

Method Description
Build ( List hashList ) : IList

Builds merkle tree.

To get a better understanding of merkle trees check: http://www.youtube.com/watch?v=gUwXCt1qkBU#t=09m09s

CalculateRoot ( List hashes ) : Sha256Hash

Calculates merkle root.

GetRoot ( IList merkleTree ) : Sha256Hash

Method Details

Build() public static method

Builds merkle tree.
To get a better understanding of merkle trees check: http://www.youtube.com/watch?v=gUwXCt1qkBU#t=09m09s
public static Build ( List hashList ) : IList
hashList List
return IList

CalculateRoot() public static method

Calculates merkle root.
public static CalculateRoot ( List hashes ) : Sha256Hash
hashes List
return Sha256Hash

GetRoot() public static method

public static GetRoot ( IList merkleTree ) : Sha256Hash
merkleTree IList
return Sha256Hash