<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pad_hex(value, bit_size):
 """ Pads a hex string up to the given bit_size """

    value = remove_0x_prefix(value)
    return add_0x_prefix(value.zfill(int(bit_size / 4)))