@classmethod
def from_bytes(cls, data, autoconsume=False):
    """ Trashy method for building a Ghid from bytes. Should
        probably rework to do some type checking or summat, or use the
        good ole smartyparser. For now, quick and dirty like.
        """
    algo = int.from_bytes(data[0:1], byteorder='big')
    address = bytes(data[1:])
    return cls(algo=algo, address=address)
