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