public static MerkleHash ComputeHash(MerkleHash left, MerkleHash right) { return(new MerkleHash(left.Value.Concat(right.Value).ToArray())); }
public bool Equals(MerkleHash hash) { return(Value.SequenceEqual(hash.Value)); }
public MerkleHash(MerkleHash left, MerkleHash right) : this(left.Value.Concat(right.Value).ToArray()) { }
public MerkleProofHash(MerkleHash hash, Branch direction) { Hash = hash; Direction = direction; }
public MerkleHash ComputeHash(byte[] buffer) { Hash = new MerkleHash(buffer); return(Hash); }
/// <summary> /// Constructor for a base node (leaf), representing the lowest level of the tree. /// </summary> public MerkleNode(MerkleHash hash) { Hash = hash; }