示例#1
0
 public MerkleNode(ITimestamp proof, IHashAlgorithm hashAlgorithm)
 {
     Proof = proof;
     Hash  = hashAlgorithm.HashOf(proof.Source);
 }
 private byte[] CombineHash(IHashAlgorithm hashAlgorithm, byte[] first, byte[] second)
 {
     return(hashAlgorithm.HashOf((first.Compare(second) < 0) ? first.Combine(second) : second.Combine(first)));
 }