code: def confirmation(self, apdu):
          
          if _debug: ClientSSM._debug("confirmation %r", apdu)
  
          if self.state == SEGMENTED_REQUEST:
              self.segmented_request(apdu)
          elif self.state == AWAIT_CONFIRMATION:
              self.await_confirmation(apdu)
          elif self.state == SEGMENTED_CONFIRMATION:
              self.segmented_confirmation(apdu)
          else:
              raise RuntimeError("invalid state")
docs: This function is called by the device for all upstream messages related
          to the transaction.