def serialize(self) -> bytes:
        """
        Serializes the KeyOriginInfo in the same way that derivation paths are stored in PSBTs
        """
        r = self.fingerprint
        r += struct.pack("<" + "I" * len(self.path), *self.path)
        return r

        Serializes the KeyOriginInfo in the same way that derivation paths are stored in PSBTs
        
electrum/bip32.py