Exemplo n.º 1
0
 private UInt256 ComputeMerkleRoot() => MerkleTree.ComputeMerkleRoot(Txs);
Exemplo n.º 2
0
 public static UInt256 ComputeMerkleRoot(IEnumerable <Transaction> txs)
 {
     using var mt = new MerkleTree();
     mt.AddTransactions(txs);
     return(mt.GetMerkleRoot());
 }