ui/shared/src/main/java/com/squareup/subzero/shared/SubzeroUtils.java
private static void validateSignTxInternalCommandRequest(
      InternalCommandRequest.SignTxRequest request) throws VerificationException {
    validateEncPubKeys(request.getEncryptedPubKeysList());
    validateTxInputs(request.getInputsList());
    if (request.getOutputsCount() > Constants.OUTPUTS_COUNT_MAX) {
      throw new VerificationException(ERROR_OUTPUTS_COUNT);
    }
    if (request.getEncryptedMasterSeed().getEncryptedMasterSeedOrThrow().size() > Constants.ENCRYPTED_MASTER_SEED_MAX_SIZE) {
      throw new VerificationException(ERROR_ENCRYPTED_MASTER_SEED_SIZE);
    }
  }
/**
   * Verifies size/count limits for SignTx request proto fields
   * These checks are done to align with limits set in the Codesafe module
   * This version is for internal protos
   * @param request SignTxRequest to validate
   * @throws VerificationException in the event of a field exceeding a required limit
   */
Verifies size/count limits for SignTx request proto fields
These checks are done to align with limits set in the Codesafe module
This version is for internal protos
@param request SignTxRequest to validate
@throws VerificationException in the event of a field exceeding a required limit
Verifies size / count limits for SignTx request proto fields These checks are done to align with limits set in the Codesafe module This version is for internal protos @param request SignTxRequest to validate @throws VerificationException in the event of a field exceeding a required limit
private static void validateSignTxInternalCommandRequest(
      InternalCommandRequest.SignTxRequest request) throws VerificationException {
    validateEncPubKeys(request.getEncryptedPubKeysList());
    validateTxInputs(request.getInputsList());
    if (request.getOutputsCount() > Constants.OUTPUTS_COUNT_MAX) {
      throw new VerificationException(ERROR_OUTPUTS_COUNT);
    }
    if (request.getEncryptedMasterSeed().getEncryptedMasterSeedOrThrow().size() > Constants.ENCRYPTED_MASTER_SEED_MAX_SIZE) {
      throw new VerificationException(ERROR_ENCRYPTED_MASTER_SEED_SIZE);
    }
  }
private static void validateSignTxInternalCommandRequest ( InternalCommandRequest . SignTxRequest request ) throws VerificationException { validateEncPubKeys ( request . getEncryptedPubKeysList ( ) ) ; validateTxInputs ( request . getInputsList ( ) ) ; if ( request . getOutputsCount ( ) > Constants . OUTPUTS_COUNT_MAX ) { throw new VerificationException ( ERROR_OUTPUTS_COUNT ) ; } if ( request . getEncryptedMasterSeed ( ) . getEncryptedMasterSeedOrThrow ( ) . size ( ) > Constants . ENCRYPTED_MASTER_SEED_MAX_SIZE ) { throw new VerificationException ( ERROR_ENCRYPTED_MASTER_SEED_SIZE ) ; } }
Verifies size/count limits for SignTx request proto fields
 These checks are done to align with limits set in the Codesafe module
 This version is for internal protos
 @param request SignTxRequest to validate
 @throws VerificationException in the event of a field exceeding a required limit
Verifies size / count limits for SignTx request proto fields These checks are done to align with limits set in the Codesafe module This version is for internal protos @param request SignTxRequest to validate @throws VerificationException in the event of a field exceeding a required limit