Repository navigation
Conversation
- Introduced new configuration classes for RLN validation, including LineaRlnValidatorCliOptions and LineaRlnValidatorConfiguration. - Enhanced the build.gradle file to include gRPC and Protobuf dependencies. - Implemented the RlnBridge for native library integration and proof verification. - Updated transaction pool validation to conditionally include RLN verification. - Added CLI options for shared gasless configurations and integrated them into existing classes. - Created tests for new configurations and validators to ensure functionality. - Updated .gitignore to exclude .vscode directory. This commit lays the groundwork for RLN validation in the transaction pool, enhancing the overall security and efficiency of the system.
…sion - Updated RlnVerifierValidator to use Bytes.fromHexString for proof verification. - Removed the hexToBytes method from RlnVerifierValidator and related test classes. - Adjusted tests in RlnBridgeTest and RlnVerifierValidatorTest to utilize the new Bytes utility for hex string conversion. - Improved error handling in test data loading for better clarity on failures.
…e registration - Renamed CLI options in LineaRlnValidatorCliOptions, LineaRpcCliOptions, LineaSharedGaslessCliOptions to use a consistent prefix `--plugin-`. - Commented out the direct registration of LineaSharedGaslessCliOptions in AbstractLineaSharedPrivateOptionsPlugin to resolve
- Introduced a new method for gas estimation in LineaEstimateGas, improving the handling of gasless transactions. - Updated CLI option names across LineaRlnValidatorCliOptions and LineaRpcCliOptions to maintain consistency with the `--plugin-` prefix. - Added logging for the startup of LineaTransactionPoolValidatorPlugin to improve visibility during initialization. - Removed deprecated methods and cleaned up the code for better maintainability.
- Introduced new CLI options for configuring the Karma gRPC service, including host, port, TLS usage, timeout, and exponential backoff settings. - Updated LineaRlnValidatorConfiguration and LineaRpcConfiguration to support the new Karma service parameters. - Improved LineaEstimateGas and RlnVerifierValidator to utilize the Karma service for gasless transaction validation. - Improved logging and error handling for Karma service interactions. - Added unit tests to validate the new configurations and Karma service functionality.
- Removed outdated comments in AbstractLineaSharedPrivateOptionsPlugin to streamline the code and clarify the logic for sharedGaslessConfiguration retrieval. - Cleaned up the Cargo.toml file by removing unnecessary comments and ensuring clarity in dependency management. - Updated import statements in lib.rs for consistency and clarity. - Simplified RlnBridgeTest by removing comments related to invalid proof handling, focusing on the core test functionality.
- Replaced gRPC-based Karma service implementation with a shared KarmaServiceClient for gasless transaction validation in LineaEstimateGas and RlnVerifierValidator. - Introduced DenyListManager to manage deny list operations, enhancing code maintainability and clarity. - Updated constructors and initialization logic across relevant classes to accommodate new shared service dependencies. - Removed outdated comments and unused code related to previous gRPC implementations. - Improved logging for better visibility during gasless transaction processing.
- Updated RlnVerifierValidator to accept KarmaServiceClient as a constructor parameter, improving dependency injection for quota validation. - Removed outdated karma service initialization logic and related comments to streamline the code. - Modified LineaTransactionPoolValidatorFactory to pass the KarmaServiceClient when creating RlnVerifierValidator instances. - Enhanced unit tests to accommodate the new Karma service dependency, ensuring proper functionality during validation.
- Added Apache License headers to multiple Java files for compliance. - Improved code formatting by adjusting line breaks and indentation for better readability. - Ensured consistency in comments and removed unnecessary whitespace across various classes. - Updated test files to include license headers and maintain formatting standards.
…ions - Updated LineaRlnValidatorCliOptions to streamline configuration options, including renaming and consolidating parameters for clarity. - Removed the LineaSharedGaslessCliOptions class, integrating its functionality directly into the RLN validator configuration. - Enhanced sharedGaslessConfiguration retrieval logic in AbstractLineaSharedPrivateOptionsPlugin for better fallback handling. - Improved unit tests to validate new configurations and ensure proper functionality of the RLN validator with the updated CLI options.
- Removed unnecessary blank lines and adjusted line breaks for better readability in multiple Java files. - Enhanced comment formatting for consistency and clarity, particularly in the NullifierTracker and RlnVerifierValidator classes. - Updated test files to maintain formatting standards and ensure consistency across the codebase.
…port rln proof format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements key components of the gasless transaction system for Status Network, centered around RLN
RLN Verifier Validator (within LineaTransactionPoolValidatorPlugin):
linea_estimateGas RPC Modifications:
plugin-linea-rpc-gasless-enabled=true)Architecture Components:
Key Features: