Constructing Non-Malleable Commitments: A Black-Box Approach