This repository contains the code for the Hyperledger Besu plugin that integrates the Credible Layer.
To use the plugin, follow these steps:
- Build the plugin by running
./gradlew buildin the root directory of this repository. - Place the generated JAR file (
build/libs/credible-layer-besu-plugin-*.jar) in thepluginsdirectory of your Besu node.
The Credible Layer Besu Plugin is designed to integrate the Credible Layer into the Besu node. It provides a transaction selection service that allows plugins to select transactions for block inclusion.
The plugin uses the BesuPlugin mechanism to interact with the Besu node. It implements the TransactionSelectionService interface, which provides methods for creating a plugin transaction selector, selecting pending transactions during block creation, and registering plugin transaction selector factories.
The plugin implements a gRPC transport. It sends transaction data to the Credible Layer for evaluation and receives the evaluation results back.
For more information on the internals of the BesuPlugin mechanism and the TransactionSelectionService, refer to the DEVELOPER.md file.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.