I am trying to find a good implementation of Merkle Tree generation in Golang, and I need the tree to be resilient to Second Preimage Attack
I have found this standard implementation in the golang docs, but it looks to me like it is susceptible to Second Preimage Attacks, since it only uses 1 hashing algorithm for the leaf and interior nodes. Is this right?
Is so, is there a standard implementation of this available?