

def write(self, data):
    'Write the given string to the pipe.\n\n        The expected data format is:  4-byte size, data, signature\n        '
    self.check_connection()
    self._write(struct.pack('I', len(data)))
    self._write(data)
    self._write_hmac.update(data)
    self._write(self._write_hmac.digest())

dataset/ETHPy150Open cloudmatrix/esky/esky/sudo/sudo_base.py SecureStringPipe.write/original