'shows the version prefix and hash encoded in an address.'

def q_decode_address(abe, page, chain):

    addr = wsgiref.util.shift_path_info(page['env'])
    if (addr is None):
        return 'Shows    ADDRESS\'s    version    byte(s)    and    public    key    hash    as    hex    strings    separated    by    colon    (":").\n/q/decode_address/ADDRESS\n'
    (version, hash) = util.decode_address(addr)
    ret = ((version.encode('hex') + ':') + hash.encode('hex'))
    if (util.hash_to_address(version, hash) != addr):
        ret = (('INVALID(' + ret) + ')')
    return ret
