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