import hashlib


def addrbin(pubkey):
    """Given a public key, in binary format, return its binary form address (just the bytes, no type or checksum)"""
    h = hashlib.new('ripemd160')
    h.update(hashlib.sha256(pubkey).digest())
    return h.digest()