def uint256_from_compact(c):
    nbytes = ((c >> 24) & 255)
    v = ((c & 16777215) << (8 * (nbytes - 3)))
    return v
def uint256_from_compact(c):
    nbytes = ((c >> 24) & 255)
    v = ((c & 16777215) << (8 * (nbytes - 3)))
    return v