def pack_contsign_as_key_image_as_val(k, v):
    """Calculate contsign of v and pack as kv."""
    from contsign_tool import calc_comma_contsign
    contsign = calc_comma_contsign(v)
    return contsign, v
