code: func HasValidNonce(t *Transaction, mwm uint64) bool {
  	return TrailingZeros(MustTrytesToTrits(TransactionHash(t))) >= int64(mwm)
  }
docs: // HasValidNonce checks if the transaction has the valid MinWeightMagnitude.
  // MWM corresponds to the amount of zero trits at the end of the transaction hash.