ui/shared/src/main/java/com/squareup/subzero/shared/SubzeroUtils.java
private static void validateEncPubKeys(List<EncryptedPubKey> pubKeys) throws VerificationException {
    if (pubKeys.size() > Constants.ENCRYPTED_PUB_KEYS_MAX_COUNT) {
      throw new VerificationException(ERROR_ENCRYPTED_PUB_KEYS_COUNT);
    }
    for (EncryptedPubKey pubKey : pubKeys) {
      if (pubKey.getEncryptedPubKeyOrThrow().size() > Constants.ENCRYPTED_PUB_KEY_MAX_SIZE) {
        throw new VerificationException(ERROR_ENCRYPTED_PUB_KEY_SIZE);
      }
    }
  }
/**
   * As EncPubKeys are shared between internal/external FinalizeWalletRequests, and internal
   * SignTxRequests, this method is intended to perform checks on the keys for all of those
   * @param pubKeys List of ByteString objects to validate
   * @throws VerificationException in the event of a field exceeding a required limit
   */
As EncPubKeys are shared between internal/external FinalizeWalletRequests, and internal
SignTxRequests, this method is intended to perform checks on the keys for all of those
@param pubKeys List of ByteString objects to validate
@throws VerificationException in the event of a field exceeding a required limit
As EncPubKeys are shared between internal / external FinalizeWalletRequests and internal SignTxRequests this method is intended to perform checks on the keys for all of those @param pubKeys List of ByteString objects to validate @throws VerificationException in the event of a field exceeding a required limit
private static void validateEncPubKeys(List<EncryptedPubKey> pubKeys) throws VerificationException {
    if (pubKeys.size() > Constants.ENCRYPTED_PUB_KEYS_MAX_COUNT) {
      throw new VerificationException(ERROR_ENCRYPTED_PUB_KEYS_COUNT);
    }
    for (EncryptedPubKey pubKey : pubKeys) {
      if (pubKey.getEncryptedPubKeyOrThrow().size() > Constants.ENCRYPTED_PUB_KEY_MAX_SIZE) {
        throw new VerificationException(ERROR_ENCRYPTED_PUB_KEY_SIZE);
      }
    }
  }
private static void validateEncPubKeys ( List < EncryptedPubKey > pubKeys ) throws VerificationException { if ( pubKeys . size ( ) > Constants . ENCRYPTED_PUB_KEYS_MAX_COUNT ) { throw new VerificationException ( ERROR_ENCRYPTED_PUB_KEYS_COUNT ) ; } for ( EncryptedPubKey pubKey : pubKeys ) { if ( pubKey . getEncryptedPubKeyOrThrow ( ) . size ( ) > Constants . ENCRYPTED_PUB_KEY_MAX_SIZE ) { throw new VerificationException ( ERROR_ENCRYPTED_PUB_KEY_SIZE ) ; } } }
As EncPubKeys are shared between internal/external FinalizeWalletRequests, and internal
 SignTxRequests, this method is intended to perform checks on the keys for all of those
 @param pubKeys List of ByteString objects to validate
 @throws VerificationException in the event of a field exceeding a required limit
As EncPubKeys are shared between internal / external FinalizeWalletRequests and internal SignTxRequests this method is intended to perform checks on the keys for all of those @param pubKeys List of ByteString objects to validate @throws VerificationException in the event of a field exceeding a required limit