Paper: fix hash binary representation for envelopes