changed merkle functions to accept hashes instead txs