def xrb_address_to_public_key(address):
address = bytearray(address, '<STR_LIT:ascii>')<EOL>if not address.startswith(b'<STR_LIT>'):<EOL><INDENT>raise ValueError('<STR_LIT>' % address)<EOL><DEDENT>if len(address) != <NUM_LIT:64>:<EOL><INDENT>raise ValueError('<STR_LIT>' % address)<EOL><DEDENT>address = bytes(address)<EOL>key_b32xrb = b'<STR_LIT>' + address[<NUM_LIT:4>:<NUM_LIT>]<EOL>key_bytes = b32xrb_decode(key_b32xrb)[<NUM_LIT:3>:]<EOL>checksum = address[<NUM_LIT>:]<EOL>if b32xrb_encode(address_checksum(key_bytes)) != checksum:<EOL><INDENT>raise ValueError('<STR_LIT>' % address)<EOL><DEDENT>return key_bytes<EOL>
Convert an xrb address to public key in bytes

>>> xrb_address_to_public_key('xrb_1e3i81r51e3i81r51e3i81r51e3i'\
                              '81r51e3i81r51e3i81r51e3imxssakuq')
b'00000000000000000000000000000000'

:param address: xrb address
:type address: bytes

:return: public key in bytes
:rtype: bytes

:raises ValueError: