This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Beethoven | ||
|
||
Silencer is a web service that receives ZKPs from different CDK chains and checks the soundness of them before sending the ZKP to L1 for verification. | ||
|
||
To find out more about Polygon, visit the official website. | ||
|
||
WARNING: This is a work in progress so architectural changes may happen in the future. The code is still being audited, so please contact the Polygon team if you would like to use it in production. | ||
|
||
## Getting Started | ||
|
||
### Prerequisites | ||
|
||
This is an example of how to list things you need to use the software and how to install them. | ||
* docker | ||
* docker compose | ||
|
||
## Usage | ||
|
||
### Running in local with Docker | ||
|
||
Run | ||
``` | ||
make run-docker | ||
``` | ||
|
||
## Production setup | ||
|
||
Currently only one instance of Beethoven can be running at the same time, so it should be automatically started in the case of failure using a containerized setup or an OS level service manager/monitoring system. | ||
|
||
### Installation | ||
|
||
1. Clone the repo | ||
```sh | ||
git clone https://github.com/0xPolygon/beethoven.git | ||
``` | ||
3. Install NPM packages | ||
```sh | ||
go install . | ||
``` | ||
|
||
### Prerequisites | ||
|
||
* For each CDK chain it's necessary to configure it's corresponding RPC node, synced with the target CDK, this node is for checking the state root after executions of L2 batches. | ||
* It's recommended to have a durable HA PostgresDB for storage, prefer AWS Aurora Postgres or Cloud SQL for postgres in GCP. | ||
### Configuration of `beethoven.toml` | ||
* Configure `[FullNodeRPCs]` to point to the corresponding L2 full node. | ||
* Configure `[L1]` to point to the corresponding L1 chain. | ||
* Configure the `[DB]` section with the managed database details. | ||
## Copyright 2022 Polygon Technology | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |