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