From 13bac91367ab1d2ce42b7d73e6cfba5f60e10cc4 Mon Sep 17 00:00:00 2001 From: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com> Date: Mon, 27 May 2024 00:10:15 -0500 Subject: [PATCH] v1.4.18-patch-1 (#216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * experiment: verify in channel (#215) * Change volume mapping so .config folder is created inside node folder and not on root (#214) * Update main.go to fix Q logo (#213) Q logo is not appearing correctly on the terminal while running node. Added a new line character after "Signature check passed" to fix it * switched get node info response to use masterClock frame for maxFrame field (#212) * fix: keys file remains null (#217) * Revert "Change volume mapping so .config folder is created inside node folder…" (#218) This reverts commit 27f50a92c6f5e340fd4106da828c6e8cdc12116b. * Docker split take 2 (#219) * split runtime docker files into a docker subfolder * split DOCKER-README.md * updated docker instructions * add restore command * add image update related tasks * add command to test if P2P port is visible * Remove bootstrap peer (#189) * Change bootstrap servers to DHT-only peers (#187) * support voucher file-based claims (#183) * Change bootstrap servers to DHT-only peers Changing my bootstrap servers to DHT-only peers with somewhat lower specs. One of the new ones is in the US and the other one is in Switzerland. Both use reliable providers and have 10Gbps network interfaces. --------- Co-authored-by: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com> * Don't run self-test in DHT-only mode (#186) * support voucher file-based claims (#183) * Don't run self-test in DHT-only mode The node tries to create a self-test when ran with the `-dht-only` flag, but it doesn't load the KZG ceremony data in DHT-only mode which leads to a crash. Don't run self-test when the `-dht-only` flag is set. I tested by starting a node locally with and without existing self-test and with the `-dht-only` flag. --------- Co-authored-by: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com> * Embed json files in binary (#182) * Embed ceremony.json in binary * Embed retroactive_peers.json in binary * Signers build and verification tasks (#181) * add signers specific Taskfile * add verify tasks * move signer task under signer folder * create docker image specific for signers * map current user into docker image and container * ignore node-tmp-* * add verify:build:internal * prevent tasks with docker commands from being run inside a container * rename *:internal to *:container * add README.md * add pem files to git * Updating Q Guide link (#173) * Update README.md Updated link to Quilibrium guide to new website * Update README.md --------- Co-authored-by: littleblackcloud <163544315+littleblackcloud@users.noreply.github.com> Co-authored-by: Agost Biro <5764438+agostbiro@users.noreply.github.com> Co-authored-by: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com> Co-authored-by: Demipoet <161999657+demipoet@users.noreply.github.com> * Signer related fixes (#220) * add pems 16 and 17 * remove .bin extension from generated binaries * no more json files to copy to docker image * feat: recalibrate self-test on the fly (#221) * fix: switch RPC for peer and node info (#222) * replace binaries with patch build * add digests * Signatory #13 added * Signatory #4 added (#223) * Signatory #14 added * Signatory #17 added * Signatory #12 added * Signatory #3 added * Signatory #2 added * Signatory #16 added * Signatory #1 added * Signatory #8 added * remove binaries, release ready --------- Co-authored-by: AvAcalho <158583728+AvAcalho@users.noreply.github.com> Co-authored-by: Ravish Ahmad Co-authored-by: luk Co-authored-by: Marius Scurtescu Co-authored-by: littleblackcloud <163544315+littleblackcloud@users.noreply.github.com> Co-authored-by: Agost Biro <5764438+agostbiro@users.noreply.github.com> Co-authored-by: Demipoet <161999657+demipoet@users.noreply.github.com> Co-authored-by: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> --- .env.example | 12 -- DOCKER-README.md | 198 ++---------------- Dockerfile | 2 - Taskfile.yaml | 50 ----- docker/.env.example | 18 ++ docker/README.md | 165 +++++++++++++++ docker/Taskfile.yaml | 114 ++++++++++ .../docker-compose.yml | 0 node/config/version.go | 6 +- node/consensus/master/broadcast_messaging.go | 45 ++-- .../master/master_clock_consensus_engine.go | 145 ++++++++++++- node/crypto/frame_prover.go | 2 +- node/crypto/wesolowski_frame_prover.go | 48 +++-- node/crypto/wesolowski_frame_prover_test.go | 5 +- node/main.go | 9 +- node/node-1.4.18-darwin-arm64.dgst | 2 +- node/node-1.4.18-darwin-arm64.dgst.sig.1 | Bin 114 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.12 | Bin 0 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.13 | Bin 114 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.14 | Bin 114 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.16 | Bin 114 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.17 | Bin 114 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.2 | Bin 0 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.3 | Bin 0 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.4 | Bin 114 -> 114 bytes node/node-1.4.18-darwin-arm64.dgst.sig.6 | Bin 114 -> 0 bytes node/node-1.4.18-darwin-arm64.dgst.sig.7 | Bin 114 -> 0 bytes node/node-1.4.18-darwin-arm64.dgst.sig.8 | Bin 114 -> 114 bytes node/node-1.4.18-linux-amd64.dgst | 2 +- node/node-1.4.18-linux-amd64.dgst.sig.1 | Bin 114 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.12 | Bin 0 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.13 | Bin 114 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.14 | Bin 114 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.16 | Bin 114 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.17 | Bin 114 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.2 | Bin 0 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.3 | Bin 0 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.4 | Bin 114 -> 114 bytes node/node-1.4.18-linux-amd64.dgst.sig.6 | Bin 114 -> 0 bytes node/node-1.4.18-linux-amd64.dgst.sig.7 | Bin 114 -> 0 bytes node/node-1.4.18-linux-amd64.dgst.sig.8 | Bin 114 -> 114 bytes node/node-1.4.18-linux-arm64.dgst | 2 +- node/node-1.4.18-linux-arm64.dgst.sig.1 | Bin 114 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.12 | Bin 0 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.13 | Bin 114 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.14 | Bin 114 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.16 | Bin 114 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.17 | Bin 114 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.2 | Bin 0 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.3 | Bin 0 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.4 | Bin 114 -> 114 bytes node/node-1.4.18-linux-arm64.dgst.sig.6 | Bin 114 -> 0 bytes node/node-1.4.18-linux-arm64.dgst.sig.7 | Bin 114 -> 0 bytes node/node-1.4.18-linux-arm64.dgst.sig.8 | Bin 114 -> 114 bytes node/rpc/rpc_server.go | 42 ++-- signers/Taskfile.yaml | 48 +++-- signers/pems/16.pem | 4 + signers/pems/17.pem | 4 + 58 files changed, 575 insertions(+), 348 deletions(-) create mode 100644 docker/.env.example create mode 100644 docker/README.md create mode 100644 docker/Taskfile.yaml rename docker-compose.yml => docker/docker-compose.yml (100%) create mode 100644 node/node-1.4.18-darwin-arm64.dgst.sig.12 create mode 100644 node/node-1.4.18-darwin-arm64.dgst.sig.2 create mode 100644 node/node-1.4.18-darwin-arm64.dgst.sig.3 delete mode 100644 node/node-1.4.18-darwin-arm64.dgst.sig.6 delete mode 100644 node/node-1.4.18-darwin-arm64.dgst.sig.7 create mode 100644 node/node-1.4.18-linux-amd64.dgst.sig.12 create mode 100644 node/node-1.4.18-linux-amd64.dgst.sig.2 create mode 100644 node/node-1.4.18-linux-amd64.dgst.sig.3 delete mode 100644 node/node-1.4.18-linux-amd64.dgst.sig.6 delete mode 100644 node/node-1.4.18-linux-amd64.dgst.sig.7 create mode 100644 node/node-1.4.18-linux-arm64.dgst.sig.12 create mode 100644 node/node-1.4.18-linux-arm64.dgst.sig.2 create mode 100644 node/node-1.4.18-linux-arm64.dgst.sig.3 delete mode 100644 node/node-1.4.18-linux-arm64.dgst.sig.6 delete mode 100644 node/node-1.4.18-linux-arm64.dgst.sig.7 create mode 100644 signers/pems/16.pem create mode 100644 signers/pems/17.pem diff --git a/.env.example b/.env.example index bd2f870..06ec4cd 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,3 @@ # Use a custom docker image name # Default: quilibrium QUILIBRIUM_IMAGE_NAME= - -# Use a custom P2P port. -# Default: 8336 -QUILIBRIUM_P2P_PORT= - -# Use a custom gRPC port. -# Default: 8337 -QUILIBRIUM_GRPC_PORT= - -# Use a custom REST port. -# Default: 8338 -QUILIBRIUM_REST_PORT= diff --git a/DOCKER-README.md b/DOCKER-README.md index 9b7ed97..af2159d 100644 --- a/DOCKER-README.md +++ b/DOCKER-README.md @@ -1,81 +1,37 @@ # Quilibrium Docker Instructions -## WARNING - -> [!WARNING] -> The Quilibrium docker container requires host configuration changes. - -There are extreme buffering requirements, especially during sync, and these in turn require `sysctl` -configuration changes that unfortunately are not supported by Docker. But if these changes are made on -the host machine, then luckily containers seem to automatically have the larger buffers. - -The buffer related `sysctl` settings are `net.core.rmem_max` and `net.core.wmem_max` and they both -should be set to `600,000,000` bytes. This value allows pre-buffering of the entire maximum payload -for sync. - -You can tell that the buffer size is not large enough by noticing this log entry at beginning when -Quilibrium starts, a few lines below the large logo: -> failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). -> See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details. - -To read the currently set values: -```shell -sysctl -n net.core.rmem_max -sysctl -n net.core.wmem_max -``` - -To set new values, this is not a persistent change: -```shell -sudo sysctl -w net.core.rmem_max=600000000 -sudo sysctl -w net.core.wmem_max=600000000 -``` - -To persistently set the new values add a configuration file named `20-quilibrium.conf` to -`/etc/sysctl.d/`. The file content should be: -``` -# Quilibrium buffering requirements, especially during sync. -# The value could be as low as 26214400, but everything would be slower. - -net.core.rmem_max = 600000000 -net.core.wmem_max = 600000000 -``` - - ## Build -The only requirements are `git` (to checkout the repository) and docker (to build the image and run the container). +The only requirements are `git` (to checkout the repository) and docker (to build the image). Golang does not have to be installed, the docker image build process uses a build stage that provides the correct Go environment and compiles the node down to one command. In the repository root folder, where the [Dockerfile](Dockerfile) file is, build the docker image: ```shell -docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.2 . +docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.16 . ``` -Use latest version instead of `1.4.2`. +Use latest version instead of `1.4.16`. -> [!TIP] -> You can use the `task build` command instead. See the [Task](#task) section below. - -The image that is built is light and safe. It is based on Alpine Linux with the Quilibrium node binary, not the +The image that is built is light and safe. It is based on Alpine Linux with the Quilibrium node binary, no source code, nor the Go development environment. The image also has the `grpcurl` tool that can be used to query the gRPC interface. ### Task -You can also use the [Task](https://taskfile.dev/) tool, it a simple build tool that takes care of extracting -parameters, building the image and running the container. The tasks are all defined in [Taskfile.yaml](Taskfile.yaml). +You can also use the [Task](https://taskfile.dev/) tool, it is a simple build tool that takes care of extracting +parameters and building the image. The tasks are all defined in [Taskfile.yaml](Taskfile.yaml). You can optionally create an `.env` file, in the same repository root folder to override specific parameters. Right now only one optional env var is supported and that is `QUILIBRIUM_IMAGE_NAME`, if you want to change the default -image name from `quilibrium` to something else. If you are pushing your images to Github then you have to follow the -Github naming convention and use a name like `ghcr.io/mscurtescu/ceremonyclient`. +image name from `quilibrium` to something else. If you are pushing your images to GitHub then you have to follow the +GitHub naming convention and use a name like `ghcr.io/mscurtescu/ceremonyclient`. -Bellow there are example interaction with `Task`. +Bellow there are example interactions with `Task`. The node version is extracted from [node/main.go](node/main.go). This version string is used to tag the image. The git -repo, branch and commit are read throught the `git` command and depend on the current state of your working -directory (one what branch and at what commit you are). These last three values are used to label the image. +repo, branch and commit are read through the `git` command and depend on the current state of your working +directory (on what branch and at what commit you are). These last three values are used to label the image. List tasks: ```shell @@ -94,134 +50,4 @@ task build ## Run -You can run Quilibrium on the same machine where you built the image, from the same repository root -folder where [docker-compose.yml](docker-compose.yml) is. - -You can also copy `docker-compose.yml` to a new folder on a server and run it there. In this case you -have to have a way to push your image to a Docker image repo and then pull that image on the server. -Github offers such an image repo and a way to push and pull images using special authentication -tokens. See -[Working with the Container registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry). - -Run Quilibrium in a container: -```shell -docker compose up -d -``` - -> [!TIP] -> You can alternatively use the `task up` command. See the [Task](#task-1) section above. - -A `.config/` subfolder will be created under the current folder, this is mapped inside the container. -Make sure you backup `config.yml` and `keys.yml`. - -### Task - -Similarly to building the image you can also use `Task`. - -Start the container through docker compose: -```shell -task up -``` - -Show the logs through docker compose: -```shell -task logs -``` - -Drop into a shell inside the running container: -```shell -task shell -``` - -Stop the running container(s): -```shell -task down -``` - -Backup the critical configuration: -```shell -task backup -``` - -The above command will create a `backup.tar.gz` archive in the current folder, you still have to copy this -file from the server into a safe location. The command adds the `config.yml` and `keys.yml` files from -the `.config/` subfolder to the archive, with the ownership of the current user. - -### Resource management -To ensure that your client performs optimally within a specific resource configuration, you can specify -resource limits and reservations in the node configuration as illustrated below. - -This configuration helps in deploying the client with controlled resource usage, such as CPU and memory, -to avoid overconsumption of resources in your environment. - -The [docker-compose.yml](docker-compose.yml) file already specifies resources following the currently -recommended hardware requirements. - -```yaml -services: - node: - # Some other configuration sections here - deploy: - resources: - limits: - cpus: '4' # Maximum CPU count that the container can use - memory: '16G' # Maximum memory that the container can use - reservations: - cpus: '2' # CPU count that the container initially requests - memory: '8G' # Memory that the container initially request -``` - - -### Customizing docker-compose.yml - -If you want to change certain parameters in [docker-compose.yml](docker-compose.yml) it is better not -to edit the file directly as new versions pushed through git would overwrite your changes. A more -flexible solution is to create another file called `docker-compose.override.yml` right next to it -and specifying the necessary overriding changes there. - -For example: -```yaml -services: - node: - image: ghcr.io/mscurtescu/ceremonyclient - restart: on-failure:7 -``` - -The above will override the image name and also the restart policy. - -To check if your overrides are being picked up run the following command: -```shell -docker compose config -``` - -This will output the merged and canonical compose file that will be used to run the container(s). - - -## Interact with a running container - -Drop into a shell inside a running container: -```shell -docker compose exec -it node sh -``` - -Watch the logs: -```shell -docker compose logs -f -``` - -Get the node related info (peer id, version, max frame and balance): -```shell -docker compose exec node node -node-info -``` - -Run the DB console: -```shell -docker compose exec node node -db-console -``` - -Run the Quilibrium client: -```shell -docker compose exec node qclient help -docker compose exec node qclient token help -docker compose exec node qclient token balance -``` \ No newline at end of file +In order to run a Quilibrium node using the docker image follow the instructions in the [docker](docker) subfolder. diff --git a/Dockerfile b/Dockerfile index 1cfbdc3..42fa039 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,8 +36,6 @@ LABEL org.opencontainers.image.revision=$GIT_COMMIT COPY --from=build /go/bin/node /usr/local/bin COPY --from=build /go/bin/grpcurl /usr/local/bin -COPY --from=build /opt/ceremonyclient/node/ceremony.json /root -COPY --from=build /opt/ceremonyclient/node/retroactive_peers.json /root COPY --from=build /opt/ceremonyclient/client/qclient /usr/local/bin WORKDIR /root diff --git a/Taskfile.yaml b/Taskfile.yaml index 07bdfcd..a2de09e 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -8,8 +8,6 @@ dotenv: vars: VERSION: sh: cat node/config/version.go | grep -A 1 "func GetVersion() \[\]byte {" | grep -Eo '0x[0-9a-fA-F]+' | xargs printf "%d.%d.%d" - PROJECT_NAME: quilibrium - SERVICE_NAME: node GIT_REPO: sh: git config --get remote.origin.url | sed 's/\.git$//' GIT_BRANCH: @@ -46,54 +44,6 @@ tasks: ${QUILIBRIUM_IMAGE_NAME:-quilibrium}:{{.VERSION}} \ >/dev/null 2>/dev/null - up: - desc: Run a new Quilibrium container, through docker compose. - cmds: - - docker compose up -d - - down: - desc: Take down the Quilibrium container, through docker compose. - cmds: - - docker compose down - - shell: - desc: Drop into a shell inside the running container. - cmds: - - docker compose exec -it {{.SERVICE_NAME}} sh - - logs: - desc: Print the logs of the running Quilibrium container. - cmds: - - docker compose logs -f - - logs-folder: - desc: Show where Docker stores the logs for the Quilibrium node. You need root permissions to access the folder. - cmds: - - "docker container inspect {{.PROJECT_NAME}}-{{.SERVICE_NAME}}-1 | grep LogPath | cut -d : -f 2 | cut -d '\"' -f 2 | xargs dirname" - - backup: - desc: Create a backup file with the critical configuration files. - prompt: You will be prompted for root access. Make sure you verify the generated backup file. Continue? - sources: - - '.config/config.yml' - - '.config/keys.yml' - outputs: - - 'backup.tar.gz' - cmds: - - | - export TMP_DIR=$(mktemp -d) - export TASK_DIR=$(pwd) - sudo cp .config/config.yml $TMP_DIR - sudo cp .config/keys.yml $TMP_DIR - sudo chown $(whoami):$(id -gn) $TMP_DIR/* - cd $TMP_DIR - tar -czf $TASK_DIR/backup.tar.gz * - cd $TASK_DIR - sudo rm -rf $TMP_DIR - echo "Backup saved to: backup.tar.gz" - echo "Do not assume you have a backup unless you verify it!!!" - silent: true - github:login: desc: Login to GitHub container registry. cmds: diff --git a/docker/.env.example b/docker/.env.example new file mode 100644 index 0000000..f7337ca --- /dev/null +++ b/docker/.env.example @@ -0,0 +1,18 @@ +# Use a custom docker image name +# Default: quilibrium +QUILIBRIUM_IMAGE_NAME= + +# Use a custom P2P port. +# Default: 8336 +QUILIBRIUM_P2P_PORT= + +# Use a custom gRPC port. +# Default: 8337 +QUILIBRIUM_GRPC_PORT= + +# Use a custom REST port. +# Default: 8338 +QUILIBRIUM_REST_PORT= + +# The public DNS name or IP address for this Quilibrium node. +NODE_PUBLIC_NAME= diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..fa83b85 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,165 @@ +# Quilibrium Docker Instructions + +## Install Docker on a Server + +> [!IMPORTANT] +> You have to install Docker Engine on your server, you don't want to install Docker Desktop. + +The official Linux installation instructions start here: +https://docs.docker.com/engine/install/ + +For Ubuntu you can start here: +https://docs.docker.com/engine/install/ubuntu/ + +While there are several installation methods, you really want to use the apt repository, this way you get +automatic updates. + +Make sure you also follow the Linux post-installation steps: +https://docs.docker.com/engine/install/linux-postinstall/ + +## Install Docker on a Desktop + +For a Linux desktop follow the server installation steps above, do not install Docker Desktop for Linux unless +you know what you are doing. + +For Mac and Windows follow the corresponding Docker Desktop installation links from the top of: +https://docs.docker.com/engine/install/ + +## Running a Node + +Copy [docker-compose.yml](docker-compose.yml) to a new folder on a server. The official +Docker image provided by Quilibrium Network will be pulled. + +A `.config/` subfolder will be created in this folder, this will hold both configuration +and the node storage. + +Optionally you can also copy [Taskfile.yaml](Taskfile.yaml) and [.env.example](.env.example) to the +server, if you are planning to use them. See below. + +### New Instance + +If you are starting a brand new node then simply run Quilibrium in a container with: +```shell +docker compose up -d +``` + +A `.config/` subfolder will be created under the current folder, this is mapped inside the container. + +> [!IMPORTANT] +> Once the node is running (the `-node-info` command shows a balance) make sure you backup +> `config.yml` and `keys.yml`. + +### Restore Previous Instance + +If you have both `config.yml` and `keys.yml` backed up from a previous instance then follow these +steps to restore them: + +1. Create an empty `.config/` subfolder. +2. Copy `config.yml` and `keys.yml` to `.config/`. +3. Start the node with: + ```shell + docker compose up -d + ``` + +### Task + +You can also use the [Task](https://taskfile.dev/) tool, it is a simple build tool that takes care of running +complex commands and intereacting with the container. The tasks are all defined in +[Taskfile.yaml](Taskfile.yaml). + +You can optionally create an `.env` file, in the same folder to override specific parameters. Right now +only one optional env var is supported with `Task` and that is `QUILIBRIUM_IMAGE_NAME`, if you want to change the +default image name from `quilibrium` to something else. If you are pushing your images to GitHub, for example, then you +have to follow the GitHub naming convention and use a name like `ghcr.io/mscurtescu/ceremonyclient`. See the +[.env.example](.env.example) sample file, and keep in mind that `.env` is shared with +[docker-compose.yml](docker-compose.yml). + +Bellow there are example interactions with `Task`. + +Start the container through docker compose: +```shell +task up +``` + +Show the logs through docker compose: +```shell +task logs +``` + +Drop into a shell inside the running container: +```shell +task shell +``` + +Stop the running container(s): +```shell +task down +``` + +Backup the critical configuration: +```shell +task backup +``` + +The above command will create a `backup.tar.gz` archive in the current folder, you still have to copy this +file from the server into a safe location. The command adds the `config.yml` and `keys.yml` files from +the `.config/` subfolder to the archive, with the ownership of the current user. + + +## Customizing docker-compose.yml + +If you want to change certain parameters in [docker-compose.yml](docker-compose.yml) it is better not +to edit the file directly as new versions pushed through git would overwrite your changes. A more +flexible solution is to create another file called `docker-compose.override.yml` right next to it +and specifying the necessary overriding changes there. + +For example: +```yaml +services: + node: + image: ghcr.io/mscurtescu/ceremonyclient + restart: on-failure:7 +``` + +The above will override the image name and also the restart policy. + +You can optionally create an `.env` file, in the same folder to override specific parameters. See the +[.env.example](.env.example) sample file, and keep in mind that `.env` is shared with +[Taskfile.yaml](Taskfile.yaml). You can customize the image name and port mappings. + +To check if your overrides are being picked up run the following command: +```shell +docker compose config +``` + +This will output the merged and canonical compose file that will be used to run the container(s). + + +## Interact with a running container + +Drop into a shell inside a running container: +```shell +docker compose exec -it node sh +``` + +Watch the logs: +```shell +docker compose logs -f +``` + +Get the node related info (peer id, version, max frame and balance): +```shell +docker compose exec node node -node-info +``` + +Run the DB console: +```shell +docker compose exec node node -db-console +``` + +Run the Quilibrium client: +```shell +docker compose exec node qclient help +docker compose exec node qclient token help +docker compose exec node qclient token balance +``` diff --git a/docker/Taskfile.yaml b/docker/Taskfile.yaml new file mode 100644 index 0000000..d2115ba --- /dev/null +++ b/docker/Taskfile.yaml @@ -0,0 +1,114 @@ +# https://taskfile.dev + +version: '3' + +dotenv: + - '.env' + +vars: + PROJECT_NAME: quilibrium + SERVICE_NAME: node + +tasks: + up: + desc: Run a new Quilibrium and related containers, through docker compose. + cmds: + - docker compose up -d + + down: + desc: Take down the Quilibrium containers, through docker compose. + cmds: + - docker compose down + + pull: + desc: Pull new Docker images corresponding to the Quilibrium containers, through docker compose. + cmds: + - docker compose pull + + update: + desc: Pull new Docker images corresponding to the Quilibrium containers, then restart all containers. + cmds: + - task: pull + - task: down + - task: up + + shell: + desc: Drop into a shell inside the running container. + cmds: + - docker compose exec -it {{.SERVICE_NAME}} sh + + logs: + desc: Print the logs of the running Quilibrium container. + cmds: + - docker compose logs -f + + logs-folder: + desc: Show where Docker stores the logs for the Quilibrium node. You need root permissions to access the folder. + cmds: + - "docker container inspect {{.PROJECT_NAME}}-{{.SERVICE_NAME}}-1 | grep LogPath | cut -d : -f 2 | cut -d '\"' -f 2 | xargs dirname" + + node-info: + desc: Displays node related info for a running node. + cmds: + - docker compose exec node node -node-info + + backup: + desc: Create a backup file with the critical configuration files. + prompt: You will be prompted for root access. Make sure you verify the generated backup file. Continue? + preconditions: + - sh: 'test -d .config' + msg: '.config does not exists!' + - sh: 'test -f .config/config.yml' + msg: '.config/config.yml does not exists!' + - sh: 'test -f .config/keys.yml' + msg: '.config/keys.yml does not exists!' + - sh: '! test -f backup.tar.gz' + msg: 'A previous backup.tar.gz found in the current folder!' + sources: + - '.config/config.yml' + - '.config/keys.yml' + generates: + - 'backup.tar.gz' + cmds: + - | + export TMP_DIR=$(mktemp -d) + export TASK_DIR=$(pwd) + sudo cp .config/config.yml $TMP_DIR + sudo cp .config/keys.yml $TMP_DIR + sudo chown $(whoami):$(id -gn) $TMP_DIR/* + cd $TMP_DIR + tar -czf $TASK_DIR/backup.tar.gz * + cd $TASK_DIR + sudo rm -rf $TMP_DIR + echo "Backup saved to: backup.tar.gz" + echo "Do not assume you have a backup unless you verify it!!!" + silent: true + + restore: + desc: Restores a backup file with the critical configuration files. + preconditions: + - sh: '! test -d .config' + msg: '.config already exists, restore cannot be performed safely!' + - sh: 'test -f backup.tar.gz' + msg: 'backup.tar.gz not found in the current folder!' + sources: + - 'backup.tar.gz' + generates: + - '.config/config.yml' + - '.config/keys.yml' + cmds: + - | + mkdir .config + tar -xzf backup.tar.gz -C .config + echo "Backup restored from: backup.tar.gz" + silent: true + + test:port: + desc: Test if the P2P port is visible to the world. + preconditions: + - sh: 'test -x "$(command -v nc)"' + msg: 'nc is not installed, install with "sudo apt install netcat"' + - sh: 'test -n "$NODE_PUBLIC_NAME"' + msg: 'The public DNS name or IP address of the server must be set in NODE_PUBLIC_NAME.' + cmds: + - 'nc -vzu ${NODE_PUBLIC_NAME} ${QUILIBRIUM_P2P_PORT:=8336}' diff --git a/docker-compose.yml b/docker/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to docker/docker-compose.yml diff --git a/node/config/version.go b/node/config/version.go index c5b5200..f9a1fe2 100644 --- a/node/config/version.go +++ b/node/config/version.go @@ -6,7 +6,7 @@ import ( ) func GetMinimumVersionCutoff() time.Time { - return time.Date(2024, time.May, 24, 4, 0, 0, 0, time.UTC) + return time.Date(2024, time.May, 28, 3, 0, 0, 0, time.UTC) } func GetMinimumVersion() []byte { @@ -27,3 +27,7 @@ func FormatVersion(version []byte) string { version[0], version[1], version[2], ) } + +func GetPatchNumber() byte { + return 0x01 +} diff --git a/node/consensus/master/broadcast_messaging.go b/node/consensus/master/broadcast_messaging.go index b0339ee..7d66767 100644 --- a/node/consensus/master/broadcast_messaging.go +++ b/node/consensus/master/broadcast_messaging.go @@ -132,6 +132,8 @@ func (e *MasterClockConsensusEngine) handleSelfTestReport( e.logger.Warn( "received invalid proof from peer", zap.String("peer_id", peer.ID(peerID).String()), + zap.Int("proof_size", len(report.Proof)), + zap.Uint32("cores", report.Cores), ) e.pubSub.SetPeerScore(peerID, -1000) return errors.Wrap(errors.New("invalid report"), "handle self test report") @@ -148,6 +150,7 @@ func (e *MasterClockConsensusEngine) handleSelfTestReport( return nil } + info.DifficultyMetric = report.DifficultyMetric info.MasterHeadFrame = report.MasterHeadFrame if info.Bandwidth <= 1048576 { @@ -169,7 +172,8 @@ func (e *MasterClockConsensusEngine) handleSelfTestReport( timestamp := binary.BigEndian.Uint64(proof[:8]) proof = proof[8:] - // Ignore outdated reports, give 3 minutes for propagation delay + // Ignore outdated reports, give 3 minutes + proof time for propagation + // delay if int64(timestamp) < (time.Now().UnixMilli() - (480 * 1000)) { return nil } @@ -181,25 +185,16 @@ func (e *MasterClockConsensusEngine) handleSelfTestReport( for i := 0; i < len(proofs); i++ { proofs[i] = proof[i*516 : (i+1)*516] } - if !e.frameProver.VerifyChallengeProof( - challenge, - int64(timestamp), - report.DifficultyMetric, - proofs, - ) { - e.logger.Warn( - "received invalid proof from peer", - zap.String("peer_id", peer.ID(peerID).String()), - ) - e.pubSub.SetPeerScore(peerID, -1000) + go func() { + e.verifyTestCh <- verifyChallenge{ + peerID: peerID, + challenge: challenge, + timestamp: int64(timestamp), + difficultyMetric: report.DifficultyMetric, + proofs: proofs, + } + }() - return errors.Wrap( - errors.New("invalid report"), - "handle self test report", - ) - } - - info.LastSeen = time.Now().UnixMilli() return nil } @@ -264,6 +259,7 @@ func (e *MasterClockConsensusEngine) handleSelfTestReport( return nil } +// This does not publish any longer, frames strictly are picked up from sync func (e *MasterClockConsensusEngine) publishProof( frame *protobufs.ClockFrame, ) error { @@ -274,17 +270,6 @@ func (e *MasterClockConsensusEngine) publishProof( e.masterTimeReel.Insert(frame, false) - peers, err := e.GetMostAheadPeers() - if err != nil || len(peers) == 0 { - // publish if we don't see anyone (empty peer list) or if we're the most - // ahead: - e.report.MasterHeadFrame = frame.FrameNumber - - if err := e.publishMessage(e.filter, e.report); err != nil { - e.logger.Debug("error publishing message", zap.Error(err)) - } - } - e.state = consensus.EngineStateCollecting return nil diff --git a/node/consensus/master/master_clock_consensus_engine.go b/node/consensus/master/master_clock_consensus_engine.go index b82f4bb..bf47b52 100644 --- a/node/consensus/master/master_clock_consensus_engine.go +++ b/node/consensus/master/master_clock_consensus_engine.go @@ -3,6 +3,7 @@ package master import ( "bytes" "context" + gcrypto "crypto" "crypto/rand" "encoding/binary" "encoding/hex" @@ -11,6 +12,8 @@ import ( "sync" "time" + "github.com/iden3/go-iden3-crypto/poseidon" + "github.com/libp2p/go-libp2p/core/peer" "github.com/mr-tron/base58" "github.com/pkg/errors" "go.uber.org/zap" @@ -62,6 +65,7 @@ type MasterClockConsensusEngine struct { report *protobufs.SelfTestReport frameValidationCh chan *protobufs.ClockFrame bandwidthTestCh chan []byte + verifyTestCh chan verifyChallenge currentReceivingSyncPeers int currentReceivingSyncPeersMx sync.Mutex } @@ -126,6 +130,7 @@ func NewMasterClockConsensusEngine( report: report, frameValidationCh: make(chan *protobufs.ClockFrame), bandwidthTestCh: make(chan []byte), + verifyTestCh: make(chan verifyChallenge), } e.addPeerManifestReport(e.pubSub.GetPeerID(), report) @@ -134,6 +139,12 @@ func NewMasterClockConsensusEngine( panic(errors.Wrap(err, "could not parse filter value")) } + e.getProvingKey(engineConfig) + + if err := e.createCommunicationKeys(); err != nil { + panic(err) + } + logger.Info("constructing consensus engine") return e @@ -170,7 +181,8 @@ func (e *MasterClockConsensusEngine) Start() <-chan error { panic(err) } - if head.FrameNumber > newFrame.FrameNumber || newFrame.FrameNumber-head.FrameNumber > 128 { + if head.FrameNumber > newFrame.FrameNumber || + newFrame.FrameNumber-head.FrameNumber > 128 { e.logger.Debug( "frame out of range, ignoring", zap.Uint64("number", newFrame.FrameNumber), @@ -186,6 +198,8 @@ func (e *MasterClockConsensusEngine) Start() <-chan error { e.masterTimeReel.Insert(newFrame, false) case peerId := <-e.bandwidthTestCh: e.performBandwidthTest(peerId) + case verifyTest := <-e.verifyTestCh: + e.performVerifyTest(verifyTest) } } }() @@ -225,6 +239,8 @@ func (e *MasterClockConsensusEngine) Start() <-chan error { go func() { // Let it sit until we at least have a few more peers inbound time.Sleep(30 * time.Second) + difficultyMetric := int64(100000) + skew := (difficultyMetric * 12) / 10 for { head, err := e.masterTimeReel.Head() @@ -233,22 +249,31 @@ func (e *MasterClockConsensusEngine) Start() <-chan error { } e.report.MasterHeadFrame = head.FrameNumber + e.report.DifficultyMetric = difficultyMetric parallelism := e.report.Cores - 1 - skew := (e.report.DifficultyMetric * 12) / 10 + challenge := binary.BigEndian.AppendUint64( []byte{}, e.report.MasterHeadFrame, ) challenge = append(challenge, e.pubSub.GetPeerID()...) - ts, proofs, err := e.frameProver.CalculateChallengeProof( - challenge, - parallelism, - skew, - ) + ts, proofs, nextDifficultyMetric, err := + e.frameProver.CalculateChallengeProof( + challenge, + parallelism, + skew, + ) if err != nil { panic(err) } + e.logger.Info( + "recalibrating difficulty metric", + zap.Int64("previous_difficulty_metric", difficultyMetric), + zap.Int64("next_difficulty_metric", nextDifficultyMetric), + ) + difficultyMetric = nextDifficultyMetric + skew = (nextDifficultyMetric * 12) / 10 proof := binary.BigEndian.AppendUint64([]byte{}, uint64(ts)) for i := 0; i < len(proofs); i++ { @@ -355,6 +380,38 @@ func (e *MasterClockConsensusEngine) Stop(force bool) <-chan error { return errChan } +type verifyChallenge struct { + peerID []byte + challenge []byte + timestamp int64 + difficultyMetric int64 + proofs [][]byte +} + +func (e *MasterClockConsensusEngine) performVerifyTest( + challenge verifyChallenge, +) { + if !e.frameProver.VerifyChallengeProof( + challenge.challenge, + challenge.timestamp, + challenge.difficultyMetric, + challenge.proofs, + ) { + e.logger.Warn( + "received invalid proof from peer", + zap.String("peer_id", peer.ID(challenge.peerID).String()), + ) + e.pubSub.SetPeerScore(challenge.peerID, -1000) + } else { + e.logger.Debug( + "received valid proof from peer", + zap.String("peer_id", peer.ID(challenge.peerID).String()), + ) + info := e.peerInfoManager.GetPeerInfo(challenge.peerID) + info.LastSeen = time.Now().UnixMilli() + } +} + func (e *MasterClockConsensusEngine) performBandwidthTest(peerID []byte) { result := e.pubSub.GetMultiaddrOfPeer(peerID) if result == "" { @@ -606,3 +663,77 @@ func (e *MasterClockConsensusEngine) addPeerManifestReport( e.peerInfoManager.AddPeerInfo(manifest) } + +func (e *MasterClockConsensusEngine) getProvingKey( + engineConfig *config.EngineConfig, +) (gcrypto.Signer, keys.KeyType, []byte, []byte) { + provingKey, err := e.keyManager.GetSigningKey(engineConfig.ProvingKeyId) + if errors.Is(err, keys.KeyNotFoundErr) { + e.logger.Info("could not get proving key, generating") + provingKey, err = e.keyManager.CreateSigningKey( + engineConfig.ProvingKeyId, + keys.KeyTypeEd448, + ) + } + + if err != nil { + e.logger.Error("could not get proving key", zap.Error(err)) + panic(err) + } + + rawKey, err := e.keyManager.GetRawKey(engineConfig.ProvingKeyId) + if err != nil { + e.logger.Error("could not get proving key type", zap.Error(err)) + panic(err) + } + + provingKeyType := rawKey.Type + + h, err := poseidon.HashBytes(rawKey.PublicKey) + if err != nil { + e.logger.Error("could not hash proving key", zap.Error(err)) + panic(err) + } + + provingKeyAddress := h.Bytes() + provingKeyAddress = append( + make([]byte, 32-len(provingKeyAddress)), + provingKeyAddress..., + ) + + return provingKey, provingKeyType, rawKey.PublicKey, provingKeyAddress +} + +func (e *MasterClockConsensusEngine) createCommunicationKeys() error { + _, err := e.keyManager.GetAgreementKey("q-ratchet-idk") + if err != nil { + if errors.Is(err, keys.KeyNotFoundErr) { + _, err = e.keyManager.CreateAgreementKey( + "q-ratchet-idk", + keys.KeyTypeX448, + ) + if err != nil { + return errors.Wrap(err, "create communication keys") + } + } else { + return errors.Wrap(err, "create communication keys") + } + } + + _, err = e.keyManager.GetAgreementKey("q-ratchet-spk") + if err != nil { + if errors.Is(err, keys.KeyNotFoundErr) { + _, err = e.keyManager.CreateAgreementKey( + "q-ratchet-spk", + keys.KeyTypeX448, + ) + if err != nil { + return errors.Wrap(err, "create communication keys") + } + } else { + return errors.Wrap(err, "create communication keys") + } + } + + return nil +} diff --git a/node/crypto/frame_prover.go b/node/crypto/frame_prover.go index 71a2e07..778e233 100644 --- a/node/crypto/frame_prover.go +++ b/node/crypto/frame_prover.go @@ -55,7 +55,7 @@ type FrameProver interface { challenge []byte, parallelism uint32, skew int64, - ) (int64, [][]byte, error) + ) (int64, [][]byte, int64, error) VerifyChallengeProof( challenge []byte, timestamp int64, diff --git a/node/crypto/wesolowski_frame_prover.go b/node/crypto/wesolowski_frame_prover.go index 6b04325..ede59b5 100644 --- a/node/crypto/wesolowski_frame_prover.go +++ b/node/crypto/wesolowski_frame_prover.go @@ -15,6 +15,7 @@ import ( "go.uber.org/zap" "golang.org/x/crypto/sha3" "source.quilibrium.com/quilibrium/monorepo/nekryptology/pkg/vdf" + "source.quilibrium.com/quilibrium/monorepo/node/config" "source.quilibrium.com/quilibrium/monorepo/node/keys" "source.quilibrium.com/quilibrium/monorepo/node/protobufs" "source.quilibrium.com/quilibrium/monorepo/node/tries" @@ -549,7 +550,9 @@ func (w *WesolowskiFrameProver) VerifyWeakRecursiveProof( } filter := proof[:len(frame.Filter)] - check := binary.BigEndian.Uint64(proof[len(frame.Filter) : len(frame.Filter)+8]) + check := binary.BigEndian.Uint64( + proof[len(frame.Filter) : len(frame.Filter)+8], + ) timestamp := binary.BigEndian.Uint64( proof[len(frame.Filter)+8 : len(frame.Filter)+16], ) @@ -600,26 +603,25 @@ func (w *WesolowskiFrameProver) CalculateChallengeProof( challenge []byte, parallelism uint32, skew int64, -) (int64, [][]byte, error) { - now := time.Now().UnixMilli() - input := binary.BigEndian.AppendUint64([]byte{}, uint64(now)) +) (int64, [][]byte, int64, error) { + now := time.Now() + nowMs := now.UnixMilli() + input := binary.BigEndian.AppendUint64([]byte{}, uint64(nowMs)) input = append(input, challenge...) outputs := make([][]byte, parallelism) wg := sync.WaitGroup{} wg.Add(int(parallelism)) + // 4.5 minutes = 270 seconds, one increment should be ten seconds + proofDuration := 270 * 1000 + calibratedDifficulty := (int64(proofDuration) * 10000) / skew for i := uint32(0); i < parallelism; i++ { i := i go func() { instanceInput := binary.BigEndian.AppendUint32([]byte{}, i) instanceInput = append(instanceInput, input...) - b := sha3.Sum256(input) - - // 4.5 minutes = 270 seconds, one increment should be ten seconds - proofDuration := 270 * 1000 - calibratedDifficulty := (int64(proofDuration) / skew) * 10000 - + b := sha3.Sum256(instanceInput) v := vdf.New(uint32(calibratedDifficulty), b) v.Execute() @@ -632,7 +634,10 @@ func (w *WesolowskiFrameProver) CalculateChallengeProof( } wg.Wait() - return now, outputs, nil + after := time.Since(now) + nextSkew := (skew * after.Milliseconds()) / int64(proofDuration) + + return nowMs, outputs, nextSkew, nil } func (w *WesolowskiFrameProver) VerifyChallengeProof( @@ -644,6 +649,10 @@ func (w *WesolowskiFrameProver) VerifyChallengeProof( input := binary.BigEndian.AppendUint64([]byte{}, uint64(timestamp)) input = append(input, challenge...) + if assertedDifficulty < 1 { + return false + } + for i := uint32(0); i < uint32(len(proof)); i++ { if len(proof[i]) != 516 { return false @@ -651,17 +660,28 @@ func (w *WesolowskiFrameProver) VerifyChallengeProof( instanceInput := binary.BigEndian.AppendUint32([]byte{}, i) instanceInput = append(instanceInput, input...) - b := sha3.Sum256(input) + b := sha3.Sum256(instanceInput) // 4.5 minutes = 270 seconds, one increment should be ten seconds proofDuration := 270 * 1000 skew := (assertedDifficulty * 12) / 10 - calibratedDifficulty := (int64(proofDuration) / skew) * 10000 + calibratedDifficulty := (int64(proofDuration) * 10000) / skew v := vdf.New(uint32(calibratedDifficulty), b) check := v.Verify([516]byte(proof[i])) if !check { - return false + // TODO: Remove after 2024-05-28 + if time.Now().Before(config.GetMinimumVersionCutoff()) { + calibratedDifficulty = (int64(proofDuration) / skew) * 10000 + + v = vdf.New(uint32(calibratedDifficulty), sha3.Sum256(input)) + check = v.Verify([516]byte(proof[i])) + if !check { + return false + } + } else { + return false + } } } diff --git a/node/crypto/wesolowski_frame_prover_test.go b/node/crypto/wesolowski_frame_prover_test.go index 78064cb..6bc039c 100644 --- a/node/crypto/wesolowski_frame_prover_test.go +++ b/node/crypto/wesolowski_frame_prover_test.go @@ -30,7 +30,10 @@ func TestMasterProve(t *testing.T) { func TestChallengeProof(t *testing.T) { l, _ := zap.NewProduction() w := crypto.NewWesolowskiFrameProver(l) - now, proofs, err := w.CalculateChallengeProof([]byte{0x01, 0x02, 0x03}, 3, 120000) + now, proofs, nextSkew, err := w.CalculateChallengeProof([]byte{0x01, 0x02, 0x03}, 3, 120000) assert.NoError(t, err) assert.True(t, w.VerifyChallengeProof([]byte{0x01, 0x02, 0x03}, now, 100000, proofs)) + now, proofs, _, err = w.CalculateChallengeProof([]byte{0x01, 0x02, 0x03}, 3, nextSkew*12/10) + assert.NoError(t, err) + assert.True(t, w.VerifyChallengeProof([]byte{0x01, 0x02, 0x03}, now, nextSkew, proofs)) } diff --git a/node/main.go b/node/main.go index 3d4362e..9d52c0a 100644 --- a/node/main.go +++ b/node/main.go @@ -192,7 +192,7 @@ func main() { os.Exit(1) } - fmt.Printf("Signature check passed") + fmt.Println("Signature check passed") } } @@ -735,6 +735,11 @@ func printLogo() { } func printVersion() { + patch := config.GetPatchNumber() + patchString := "" + if patch != 0x00 { + patchString = fmt.Sprintf("-p%d", patch) + } fmt.Println(" ") - fmt.Println(" Quilibrium Node - v" + config.GetVersionString() + " – Nebula") + fmt.Println(" Quilibrium Node - v" + config.GetVersionString() + patchString + " – Nebula") } diff --git a/node/node-1.4.18-darwin-arm64.dgst b/node/node-1.4.18-darwin-arm64.dgst index 41b56a7..93db326 100644 --- a/node/node-1.4.18-darwin-arm64.dgst +++ b/node/node-1.4.18-darwin-arm64.dgst @@ -1 +1 @@ -SHA3-256(node-1.4.18-darwin-arm64)= aee64d1d18c8e5567016d51460cf882005c4a873dbebcd7d608b8d3d9e74c682 +SHA3-256(node-1.4.18-darwin-arm64)= dc14a02268d88540bb364259775743c536d7541011bf26d4630f7fed425b5986 diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.1 b/node/node-1.4.18-darwin-arm64.dgst.sig.1 index e04dc24decb76361737cf9d631c9b4d184cf301b..2f8bc8a657015af1c83cc79c071166d5c118bc9a 100644 GIT binary patch literal 114 zcmV-&0FD0@n`{}9ybJ@ghxFMOQm51&!K8eqIC>0}laQOodGoD5=}hEKSM37^7Zv`z zE+-~2$(ziPaen217!)IDPXyOk2xYnQxEdic)zDOo?nJr@;z)CnbtQ=c_2{X$-w?~V U7~(I(9{x^>DQX)96Wjp-01h8CB>(^b literal 114 zcmV-&0FD1~uBX`~Bq^0Ugj+mOlW}GOsXYeZuF$Z}ohTTq_}Tj$a@^Apz)#FHGs<0@ zSH?NumiaF+Z$M)J(SKK;goA#5qT*B@CBOVU{Wokr5nW@(5($zMyuaJcjW#3At5`Ps U)E||c3l~hlY26YOKQ|yI07~dIaR2}S diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.12 b/node/node-1.4.18-darwin-arm64.dgst.sig.12 new file mode 100644 index 0000000000000000000000000000000000000000..6cf3d7405dabdcdb71522fc995a43285a547825d GIT binary patch literal 114 zcmV-&0FD1}wD`l8f5m*b{KV$Q+C~(`D9XMH*(P}lL43g}`FjSLUG4`_ywH<;Zk=vQ zFj(feGic#E%?Z>1-H$m-0GZu5B>(^b literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.13 b/node/node-1.4.18-darwin-arm64.dgst.sig.13 index 4ae193e5978cd9f304296d8f3d24b74389d7bf18..b51946df7562f52115db566cac57b6ed199d4f63 100644 GIT binary patch literal 114 zcmV-&0FD1%?5w)EN%%LugHJ#v{L&vR;ivBft3X*FO%dv?GD1X#{Q@_~SU`<|l^^nT z0j}o$oGE$9D}~^IdW&KUyJCvq?#59lo~bo}O~2tUWFOA*7)Yei<@T;<9}EfUW}mrElG0OajA$^ZZW literal 114 zcmV-&0FD39D01Lk${og%K*G_9N}4Y$u^~+GlFw4t>7rS!-KEOOWSU8xeqPB(-HqBx zWbf^nt)DH`mk4`+AqYv=tM$pLrf77mVfnsRmWV4Xj~gNtmeFpKL#csT?n6LKypI}N Urq5hbnIFv1Z;22*w?)`E0MT2j7$p(_ssw%TJcgQzYI?A-&l2FL1n+!<5!(8?rJAFf$JtS;3l(tckeu3y U_1Y8FfgRNS44qr14xx`Q0O5-_82|tP literal 114 zcmV-&0FD2=CVhrTFeB}oV>WY1e(=Eh|Cqj79;JcXQ2n)#y_h49PaB@%Y-`PEYP82o z8aZ(;SS(k57VO0U@_{~3E$MqK;9U)4XzHD)9?4=$m7z#lbVs6bM^bS$#g`91p%yPr Uve$N$7^R((Nzn$os;UPb0FZDsQ2+n{ diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.16 b/node/node-1.4.18-darwin-arm64.dgst.sig.16 index a0fb9df605b93393bf7484bb2e5add7f98e09d25..d6ad923f9dae08221c6208dac6b48078f8a9fd99 100644 GIT binary patch literal 114 zcmV-&0FD3LHA2-tkScSMV-dm?H~xtN1$@#6QyK-hsUgwvW!=54`+-t&Y{U|}!y#+v zfgC@mkYPrzcQ`x%Z~Xsm!zj;7$>rqYVW4$Ii5cY!XRD0ZavW+=A`_JbAmgI~P2Lpv UVgtwRjU?%80Uk`X6Xsbe00JB|d;kCd literal 114 zcmV-&0FD0_ruE!6eNT0Nk}a8~^|S diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.17 b/node/node-1.4.18-darwin-arm64.dgst.sig.17 index fb6a0f368878737d180a4b13eb5f6f991d4c2ea6..a36964f050e332509811cc4500ae5f249fea263d 100644 GIT binary patch literal 114 zcmV-&0FD0&WB(=0j4~iu`>^t%)^4;FZ(sX@g<|rk?$J2h z0@EXeH&9wx%ix{>p^OiEVKW(vah_fl40)#`#3pSq6vb{0y^!g$wCb8di~C@pG0vv^ U`?k$H_5EEhfFN@C?QRJs06dvDWB>pF literal 114 zcmV-&0FD2~c!hBYp8-w2p4`#&@r?T)Wx5Qzz`I=*yF($&kGHgTcw>GqL6?w8*=UyL z-13)a-P5Y@Ji*I==xq+%Sac2uhR)POMb$(MoJkm~ UE#+o-8+_sStt-Ad-)OZf0NMvU0RR91 diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.2 b/node/node-1.4.18-darwin-arm64.dgst.sig.2 new file mode 100644 index 0000000000000000000000000000000000000000..7859d1a898f7bd567a34f4527f52421945872ab4 GIT binary patch literal 114 zcmV-&0FD3RoT_+wNKPHor+|p6YId6wY(yfcJBPq%q$4ME%p+mx`<%}2Hb9F7d68kX z2qRQ1PPD4!pG8!FR#eiU;4#{5>_6?8`rAYbrnE3A24vwLON4#>{0av+)fzd~#5R>p Ud_?d;QWpS3M@65;@l#AA09r^j00000 literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.3 b/node/node-1.4.18-darwin-arm64.dgst.sig.3 new file mode 100644 index 0000000000000000000000000000000000000000..8f13dc52ae677c39446fdc30eb4f93fef9a6e425 GIT binary patch literal 114 zcmV-&0FD0#dpJq=Tf&US0WTKociF7c;B9arf)p`GibK)i<{NQBJ-vnKp3;m92{r>Q?vSM3mWr#rbTb@(SETSk_`am^W8$b`43{F&7^4M7Pyv!1LfzT U>%6aa3T^BN4M3#*WURtk-M110cyYBLWEJ#6;9Fw Us?z3yoyK__P|nqsW1q4Q06{-E`Tzg` literal 114 zcmV-&0FD3Ymb|k_OgNYxFg$!Drd8bd$KzxJWU3MHmd2m`UtejQNpx1ZA&<%-^OE7d z%OH4tVomx(;{yBVlmUT%L`U7DI1j%~5Ua@?mn|5%c->=SYnJPLClqR9rK Un+md1E}3>LFVJ81!beaW01Fd0ng9R* diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.6 b/node/node-1.4.18-darwin-arm64.dgst.sig.6 deleted file mode 100644 index 05d3b24486bc03f9215c49eeae74658de7313aed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmV-&0FD2Q>^zYocBCu#D~cuQgRc8E1uyC}%)_Cp_fkZYtk4gK4Cbr5vf9m&7Zjfu zT$-n_93j^Wq0)5#_HZQl3B%XbLSm95$EA?o^lfufL*vBJQP|_V32&zLT$7? UyBqHgjwS~lA{wdzh*(oN09n*IQ~&?~ diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.7 b/node/node-1.4.18-darwin-arm64.dgst.sig.7 deleted file mode 100644 index 6424f6225fa1975e70222bf8975fb8dd76d8a17f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmV-&0FD1$B5d{)!UPD*E|J+Jykw=rfM+@usc&HX)|)Vox8*TVl&ZmC1>`5zw%~6Ux6l8J}aj( UWM9Bf*B^)bV$1x8Hs!`40J~B$JOBUy diff --git a/node/node-1.4.18-darwin-arm64.dgst.sig.8 b/node/node-1.4.18-darwin-arm64.dgst.sig.8 index 7d6e423defe6e01ad20c9d41bc0168601f1a4179..4deec94354621d4e97aba3ef5d636d817815a80e 100644 GIT binary patch literal 114 zcmV-&0FD0vf#>5L7o}JaA6YNm7HpK=UUiHWx^gGr@{f@{sk#ba-UPnhMK_)%MMtf| z@{5D~Pv-4#l6RwkU~**uj(C|6-(oH}x?k Ue9E{0SB)7^(lsUa0c7GU07bMm3;+NC literal 114 zcmV-&0FD1-u3x;`BC_WH`XVKSNfn{MGJqCU*{EwMK53&R$EYsK;bFZEW5hw0;*agk z$2(equE(B87qs|*a*iQFaPulIV`QC0=+6DOVAfCq@hqGZovg)fSI*pkEZv`K3@cKi UamzlcaTC)K3`i#}Nf!JA03TmBO#lD@ diff --git a/node/node-1.4.18-linux-amd64.dgst b/node/node-1.4.18-linux-amd64.dgst index 2e89a8e..cbf1d51 100644 --- a/node/node-1.4.18-linux-amd64.dgst +++ b/node/node-1.4.18-linux-amd64.dgst @@ -1 +1 @@ -SHA3-256(node-1.4.18-linux-amd64)= e24acbaab0dca79a26c1ac80561eb2dc69abf381fff73b5bb4092084143ba2c9 +SHA3-256(node-1.4.18-linux-amd64)= e41bf8538990e201637521b0eb278a1aebfc46e5d8de102f4870de30616b44e6 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.1 b/node/node-1.4.18-linux-amd64.dgst.sig.1 index 2bfd324e73b986cd7135f485d137c9e0976efb38..3f61252576e62b861b23c8d9751d02557d4b817d 100644 GIT binary patch literal 114 zcmV-&0FD38TUh`?rBa0OAU`vIzkkLq?fnR9vipjlswY_-q?#F%M`ehhe45E4{(~l- z{QCD$bk~mArQW&#$Z9{Gxs=kxqo|EHEfR3j^}3dYa7d677=|0oCeLF%)T4X0daE9f U_adlUi$cQEveoS-S;(~%074!+S^xk5 literal 114 zcmV-&0FD3Vn!`m6Ki19M22u@EQ-f5>7<8Zs+bfcI8~1D3ACy831wWn>g#c{L`@TPJ zMX89eaWIXFnrhepQM{?`IB~QI+mG-$qu4ArS7}&teJR96l7N8o4RJvcKsJO1*@6Wl U(=DSxoKYEhzxGAx(BSSU0GT*62mk;8 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.12 b/node/node-1.4.18-linux-amd64.dgst.sig.12 new file mode 100644 index 0000000000000000000000000000000000000000..2187f5781c850a2504cf3bfff221ea711bc10823 GIT binary patch literal 114 zcmV-&0FD1_>nKs4b`g-YwEI;>Da{3>L(+gK(23cglsTjwg_Sy?6YR<0!~Q1l?~!ri zdRkVtU@UT6@9*>gbs@XMa^fxs5I{$s<>1!Z=Y)d1kr3s7L}jj#r3?o)tWYAOL=JKX UiF?AfVC2EMqa3&NF*x=g08vRg4FCWD literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.13 b/node/node-1.4.18-linux-amd64.dgst.sig.13 index 84f6ef20ce43a2bcce34703f5de15e61d86803c5..320de721f707f4d3475793ddc694a8cede71c58b 100644 GIT binary patch literal 114 zcmV-&0FD0&c2H(zm6}Pg?O3~9JL&M(1Nk5utmL}xi(}RNaI-5GlbQn+lg^Sbp6Btk|O{Z>{4#JveKf)*gx8AnZXKA)KD=z`R$X5zbt3v-&3S}=lg8i U7l?1|NeaO3+?O_E#R2a!0ML;-2mk;8 literal 114 zcmV-&0FD3kbg!Xi#m5ibb-#ac7~Pgv@h~rzykL285edhpU)|41F{TqAcuP$QFtHx9 z!Cg)NIk*qOA$XMluOsy>5!%N!H?ToN?gqujEsVGYt#5`hN!#Y0emcWUwgypZeH{}8 UKTG_`%?j=|MP@0tJvdJ>049Yq0{{R3 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.14 b/node/node-1.4.18-linux-amd64.dgst.sig.14 index 1199c5a107216998808dbb32dc94421ddb1fbbe7..3b45334ecab9edfd71ae3691e42b60132d8e3386 100644 GIT binary patch literal 114 zcmV-&0FD3aFEe|KaqCY$%KJ=9casJ8Bgj}i5L1}G>=`~GjJ%m77aMh%MbplZ%)l#_ z((<^ff}d=2^K-BO?jHU}2@L0P-!+&KZO>&wDi>i4m3A@S3%IAY-bp=_$}r^<=Atlj U8-0E?`&JpmaEBeD{dsH)09}+d_W%F@ literal 114 zcmV-&0FD1qUxz&LOn)zO5ct0UycxILiTme=_|?=O=P>5`w^H?-Vg&wgpSTl6tqSw0 z@5Zqs@R_)>R$(syTn3jT%yVTnS=0E*H&0ssI2 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.16 b/node/node-1.4.18-linux-amd64.dgst.sig.16 index 8b6e43b5393068ca619d8d2f2d72869ec374837a..81dc5b25faf5d850255cb75cc53a635193305848 100644 GIT binary patch literal 114 zcmV-&0FD0{4!?c$+<+*9+-dBfA>_MEC+Ykov!K7JLqbgUG>a!GVu5q_RE61S;w;l#g(ff9f(Bgq1}6 UzSo^sn|+0_`Tbx%O4tx106`5pAOHXW literal 114 zcmV-&0FD2RGZY1edrP)(V#fMrPFb9F4XI@~P8b4ZNerv0lrG{Eo4T!T3RrJ5y9_-e zQc7|Yp}%A0!P9*JQXcSV@FXwb=Fi%Q0%~JTP}cM$TeyXEHFBl>5eo$KaYImmfS&7u UhYv;vS=N;>b%7 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.17 b/node/node-1.4.18-linux-amd64.dgst.sig.17 index c6f22f18fbe86e8c9fe83ce5f737397fbd7da188..a05a3f16c51826f4de982aa849d4f09783ee32ce 100644 GIT binary patch literal 114 zcmV-&0FD20ZF>^K#1H{1V&NX}w9Sf!+x233b}Y5Z;|8=Y%FLn>L%MeVcRyLX31~xr zez%NkC9g<0gpn_R%Qrs1X?C}Az)K!v`c%YS4LfAj|ILhT`qRStkEMYPs^3{R^ug`o U=9#kNz%rk2?H`w7Vt@=N0Qwv|1^@s6 literal 114 zcmV-&0FD0*;ge%JlLOP+SaC7+?uez=ksyaT1>&Xl0)4M+KB&p-@1ly5(*`!9ICF0Q zhS9q?9x91mjZEBtR5c69ObVrT#|qldE-wP@^YZ*r-)r&KQ>2x#_D0gH;WT0rdjgAh UqG|&cfe1JF{4eaz06hL005RSkxKcq4g<|0{ z)toE%B5!J~N%VOD=T1UyAW_L%{9SIVof;P2dqGFD%xP0+#q@{nV&RWW5VlWOstkB% UXYb$aOL@>bidVD=$s}w90Q{;rX#fBK literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.3 b/node/node-1.4.18-linux-amd64.dgst.sig.3 new file mode 100644 index 0000000000000000000000000000000000000000..4bdf22e24fcbbbf1a2e0e3957679730fbd2049e8 GIT binary patch literal 114 zcmV-&0FD11zvmylx~&W2$1%PFao&!z-{{#?!mGI>IY~py^wcTsMEfmS{25rX?7vmf9%Rq93#7WM? UvPLxkS5S|!%+6F6SchCB0GVYu&j0`b literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.4 b/node/node-1.4.18-linux-amd64.dgst.sig.4 index 607379d68e8a0e2b5a2ffd77e908f1711a5aeecc..027bbd4c82a0bff41f31b2b0047534f8b0b2f548 100644 GIT binary patch literal 114 zcmV-&0FD256yS&LV@TwcxR`;LIHD@zh&V;d^MlTv6zChc!wXpvqw@wvlQ8rYq7fNh zFPm=v$h-xK+N^j0OAy|KqKpS(@MBZF*zjz?GrJ@FCJm44UVhg$);|h*YaSR`B7iSg Us8^tJUd*aDRJX;NXwn-8qDx{c}Hh!(%R3fdl@$6kg^xv6%XT-jypZ9n#Mv U$Nn%q6pp^(+-p=xdA)xQ0IdN#r~m)} diff --git a/node/node-1.4.18-linux-amd64.dgst.sig.6 b/node/node-1.4.18-linux-amd64.dgst.sig.6 deleted file mode 100644 index f1619670f5eb0e3075fc6894ea4aa3076f4ca9b8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmV-&0FD1s7h^BVMP6U4$=kNqp@v3c!I{|Loe__5Rw z9ar08NgR-PS-bFn&zV>|p^s!7SrX;&H4=>p`l$k*VIf?_#&Oh~cZp&L3yU_F^A8BF U(ZC+_B8?Uk&KRcOfWVGw%8}&Ai6JQd*{hFR{(m{AAw4< zAAM5o!LO2_|Iz6HIMNH;xy;q$Qw+NMQm60JI%-PwM3c-ymo}0#T9r4mb-1lra+-gL U?!(y^15F`onLJf9!0jR*02Ea_#sB~S diff --git a/node/node-1.4.18-linux-arm64.dgst b/node/node-1.4.18-linux-arm64.dgst index 33f07f5..0938885 100644 --- a/node/node-1.4.18-linux-arm64.dgst +++ b/node/node-1.4.18-linux-arm64.dgst @@ -1 +1 @@ -SHA3-256(node-1.4.18-linux-arm64)= 888228bb59dc0b7fc103bd886906cfecdf3877dcedc138a1fd4cf694ab527409 +SHA3-256(node-1.4.18-linux-arm64)= de488e85acfd5ced235c8b7994d37cb153251826a52d1b0e964034b80d65b478 diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.1 b/node/node-1.4.18-linux-arm64.dgst.sig.1 index 01bf4cebbc0eed6ae90b6e5c9a2369732420ed22..27daa5a758d131d5a2250f7f5ee01492258548af 100644 GIT binary patch literal 114 zcmV-&0FD1*gRq zeQ4jr0u^*p~@^KqXPbQAHuxg9hObGy5Nig#Y3g777djDaw!>!n7o=v UW_|SXWy2aR2Yd%6Pw&4H00NLV*#H0l literal 114 zcmV-&0FD3hG0=ODe_BN+=`^-sq*0EUVg_H@7I3yCz4jKtm+ca>=WkU+IstJ3CRBZ) zm*~%^Moc*;u?HsrygL6hgiL{ZZwPGb19Sc1V^BGpH7}51{z3w=z5%#+d!`b$xpBv~ Ub~C=rRw^rqcYv#uDM7?00L;}hw*UYD diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.12 b/node/node-1.4.18-linux-arm64.dgst.sig.12 new file mode 100644 index 0000000000000000000000000000000000000000..0c7c5339fb38f2acabe244165a2805649aa8a5bb GIT binary patch literal 114 zcmV-&0FD35dibsA(oD@rJg&bw=En%{1>l=RkY^tn-287b5rd(bJFAnIGD$?H>pXDT zyUbT2E~?1Bav?APK|mVTpH;8hG@mKu9jdyF6lM&V^(T1*4DB_$8Rj<0xSgFHmJZnI UfR}rHF8ao#;YJxvV}+$T0QFNhu>b%7 literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.13 b/node/node-1.4.18-linux-arm64.dgst.sig.13 index e821217802ed4cc6ea39d2039e9a3889f3d86d9c..c38670b4285eb318c67a36f84b54e15c94b04bb5 100644 GIT binary patch literal 114 zcmV-&0FD2Z;%8}xk%ePs`q*GtBG;C)GguwK`g+oDxuz$QB?%jyRQzMoxrs9} zMgaPGS|5Ee-;@J@l(-{$&sr;fZCJR3XO$EL<#BAiOCY-?P9m()j%h@MJZh8x^GdzO U3^el<_-5j^&nuc2RwfH60AK$!WB>pF literal 114 zcmV-&0FD3FqDwRSjqWacpg6^aKikmjpmzAS%7%@{kz*sI?6S$pr9hGayTU^}z>F|}021Uo)&Kwi diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.14 b/node/node-1.4.18-linux-arm64.dgst.sig.14 index ac0054eb0530b902fc8e4ca9256bfcb0d11a4f01..9d207f7c90f259f204e2f64039a1f581548ea503 100644 GIT binary patch literal 114 zcmV-&0FD39PVippmXn$N*FD?(g4@$AdT#s}RX?b;jI4uh>A_}nyOlFxmRJ;z2qNIJB}%sIbk+gMcxkqGlsvFN2* UuI&ng@d5eyG1=B{*2z2vGq+)$H+nIekrti`n4q?k!XOafTzFleBv_ z?#F*K(bX4zUwdwV-9)6$O)QiYr*8umdSS@?Ws$0{D$_v9<0bWpuUGXUfOHLRu4NM{ Ul=cZYvOX*bFmj4(B_i@w<=?~CU zz&{ge4l|YudjqxrWgFvi8P!;1Y2?77D#P!W5>&x_Cvn%#+58BNEPsY U8tAu1%!iT(#E8f<;&QP!0FPWZQ~&?~ literal 114 zcmV-&0FD3Lr)zJumThPYo9_u4x7d`{mnX9kTD#^Kvb7%4Qk7(Kt)SnBXsWDbI#`QX zAk7q06MNWERQ1sSha7f*-sZ#X*Gz`mbG%2$j@8^0s}roI>syrgcb`R9=i0y;L!=H9 UYtt){_lU9iqpl2sPXcfs09773fB*mh diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.17 b/node/node-1.4.18-linux-arm64.dgst.sig.17 index 7d61205af113e2e42a816733b8ceb027f0e1ed9e..a7afc9960bc646b9751cdd901483bfeab0fcc9f3 100644 GIT binary patch literal 114 zcmV-&0FD2b`uxsUJIpZgeVN zRvz9V0Uu`oIO%HuZ1;?aLFSOg%}RF5m`uB1VwJD?$;tY_oQTgMi@#lhNOK+haaQlwi$9^N U5AjhjS`qjRWuYJyH8dm_01lZqNB{r; diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.2 b/node/node-1.4.18-linux-arm64.dgst.sig.2 new file mode 100644 index 0000000000000000000000000000000000000000..7759dc473350c91a751d5071403b2c913a6d0137 GIT binary patch literal 114 zcmV-&0FD2~v$<|i1`xP55Q^`PCH@IFSe5cHoAgYUrZ#qO4AR8O;tq=fFOp#Vs^Bs% zBb2Z!kLe}!E$}MNmP U(fMHC9dspjy57|XZGMdn078*A-~a#s literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.3 b/node/node-1.4.18-linux-arm64.dgst.sig.3 new file mode 100644 index 0000000000000000000000000000000000000000..170a8da530a5a6e677f970f1236e899b7290093a GIT binary patch literal 114 zcmV-&0FD1K5!xuED)){bw6fL#8P~TUX|pW+Q%F64RVQOf_UA_?Xl@x|Amyk;FDY$# z7Kw;mX0pfq`S|&OhOX((>%?^6XjwUrrn-&}k>!p;jZw2sJ|-xtQ~;Brz)RE%I_J<3 UFtDfm(x+L+HvlhfJPw6708XDaN&o-= literal 0 HcmV?d00001 diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.4 b/node/node-1.4.18-linux-arm64.dgst.sig.4 index be1b26d08663c91ed2abae920f691bba04d9b694..9b53b070e79bcd0e0115af8ad45bd767d17f50aa 100644 GIT binary patch literal 114 zcmV-&0FD2lEPEqOj-L3>XZ3bX32j?~OLoP*wp(ebhWQiQ7u&j`{)WryBzq3Z4axCaRLZXnh;a4D2nl7eHlVPbo~mNojQnl*YOf%T&_2D<$8Yxh;7WHu$Wjc(=Z0-)c&4bAtC@<3n+8 U17RjK1M1|wo`)0D39Hj70C%!9n*aa+ diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.6 b/node/node-1.4.18-linux-arm64.dgst.sig.6 deleted file mode 100644 index c1c4b7f8426b0b52bf1b1a52951d9d7fe8862f3e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmV-&0FD2Gx&-4X_cW7(qP6dAZkGfY*&KWuRgs4bK_=kD0K^JkCDuVuo+IddMHpSl zdk9jV`WCvGc^=FFQ^HPlT&NDG5*)LO${5N-Ga%ICoQ^+joy{^T!mWxVL!?O5=d3jf Uvr^=oKHmmtv_TBVT&Zj`0DMd{3;+NC diff --git a/node/node-1.4.18-linux-arm64.dgst.sig.7 b/node/node-1.4.18-linux-arm64.dgst.sig.7 deleted file mode 100644 index d620c2758e35983a1fba820d3a823ac718cd573c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmV-&0FD1>`(tR_mp5+~W_GZY{GLK;O8PE9Es`yWLVeNy^4D90^t|Jp_$lCBtlOt- z{k@2BB4;gtBhUf>;ELgIPanVdE(cP&QF{6Qxu?qC3;ar+#xc62}! UIdoIse0mG^PLIG8S(PXj07-YE!07GXvvj6}9 diff --git a/node/rpc/rpc_server.go b/node/rpc/rpc_server.go index 9831c35..13a53a3 100644 --- a/node/rpc/rpc_server.go +++ b/node/rpc/rpc_server.go @@ -5,6 +5,7 @@ import ( "context" "math/big" "net/http" + "source.quilibrium.com/quilibrium/monorepo/node/config" "github.com/libp2p/go-libp2p/core/peer" @@ -154,19 +155,14 @@ func (r *RPCServer) GetNodeInfo( if err != nil { return nil, errors.Wrap(err, "getting id from bytes") } - - maxFrame := &protobufs.ClockFrame{} - for _, e := range r.executionEngines { - if frame := e.GetFrame(); frame != nil { - if frameNr := frame.GetFrameNumber(); frameNr > maxFrame.GetFrameNumber() { - maxFrame = frame - } - } - } - peerScore := r.pubSub.GetPeerScore(r.pubSub.GetPeerID()) - return &protobufs.NodeInfoResponse{PeerId: peerID.String(), MaxFrame: maxFrame.GetFrameNumber(), PeerScore: uint64(peerScore), Version: config.GetVersion()}, nil + return &protobufs.NodeInfoResponse{ + PeerId: peerID.String(), + MaxFrame: r.masterClock.GetFrame().GetFrameNumber(), + PeerScore: uint64(peerScore), + Version: config.GetVersion(), + }, nil } // GetPeerInfo implements protobufs.NodeServiceServer. @@ -175,13 +171,23 @@ func (r *RPCServer) GetPeerInfo( req *protobufs.GetPeerInfoRequest, ) (*protobufs.PeerInfoResponse, error) { resp := &protobufs.PeerInfoResponse{} - for _, e := range r.executionEngines { - r := e.GetPeerInfo() - resp.PeerInfo = append(resp.PeerInfo, r.PeerInfo...) - resp.UncooperativePeerInfo = append( - resp.UncooperativePeerInfo, - r.UncooperativePeerInfo..., - ) + manifests := r.masterClock.GetPeerManifests() + for _, m := range manifests.PeerManifests { + multiaddr := r.pubSub.GetMultiaddrOfPeer(m.PeerId) + addrs := []string{} + if multiaddr != "" { + addrs = append(addrs, multiaddr) + } + + resp.PeerInfo = append(resp.PeerInfo, &protobufs.PeerInfo{ + PeerId: m.PeerId, + Multiaddrs: addrs, + MaxFrame: m.MasterHeadFrame, + Timestamp: m.LastSeen, + // We can get away with this for this release only, we will want to add + // version info in manifests. + Version: config.GetVersion(), + }) } return resp, nil } diff --git a/signers/Taskfile.yaml b/signers/Taskfile.yaml index dd5b67e..a5d4c3f 100644 --- a/signers/Taskfile.yaml +++ b/signers/Taskfile.yaml @@ -83,24 +83,28 @@ tasks: sources: - '**/*.go' generates: - - node-{{.VERSION}}-*.bin + - node-{{.VERSION}}-darwin-arm64 + - node-{{.VERSION}}-linux-amd64 + - node-{{.VERSION}}-linux-arm64 cmds: - - GOOS=darwin go build -ldflags "-s -w" -o node-{{.VERSION}}-darwin-arm64.bin - - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o node-{{.VERSION}}-linux-amd64.bin - - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o node-{{.VERSION}}-linux-arm64.bin + - GOOS=darwin go build -ldflags "-s -w" -o node-{{.VERSION}}-darwin-arm64 + - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o node-{{.VERSION}}-linux-amd64 + - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o node-{{.VERSION}}-linux-arm64 digest: desc: Generate digests for node binaries. deps: [build] dir: ../node sources: - - node-{{.VERSION}}-*.bin + - node-{{.VERSION}}-darwin-arm64 + - node-{{.VERSION}}-linux-amd64 + - node-{{.VERSION}}-linux-arm64 generates: - node-{{.VERSION}}-*.dgst cmds: - - openssl sha3-256 -out node-{{.VERSION}}-darwin-arm64.dgst node-{{.VERSION}}-darwin-arm64.bin - - openssl sha3-256 -out node-{{.VERSION}}-linux-amd64.dgst node-{{.VERSION}}-linux-amd64.bin - - openssl sha3-256 -out node-{{.VERSION}}-linux-arm64.dgst node-{{.VERSION}}-linux-arm64.bin + - openssl sha3-256 -out node-{{.VERSION}}-darwin-arm64.dgst node-{{.VERSION}}-darwin-arm64 + - openssl sha3-256 -out node-{{.VERSION}}-linux-amd64.dgst node-{{.VERSION}}-linux-amd64 + - openssl sha3-256 -out node-{{.VERSION}}-linux-arm64.dgst node-{{.VERSION}}-linux-arm64 sign: desc: Generate signatures for node binaries. @@ -130,9 +134,9 @@ tasks: - docker:build_image cmds: - docker run --name signers --rm -it -v {{.PARENT_FOLDER}}:/home/{{.USER_NAME}}/ceremonyclient -u {{.USER_NAME}} -w /home/{{.USER_NAME}}/ceremonyclient/signers {{.QUILIBRIUM_SIGNERS_IMAGE_NAME}} task verify:build:container - - diff node-{{.VERSION}}-darwin-arm64.bin node-tmp-darwin-arm64.bin - - diff node-{{.VERSION}}-linux-amd64.bin node-tmp-linux-amd64.bin - - diff node-{{.VERSION}}-linux-arm64.bin node-tmp-linux-arm64.bin + - diff node-{{.VERSION}}-darwin-arm64 node-tmp-darwin-arm64 + - diff node-{{.VERSION}}-linux-amd64 node-tmp-linux-amd64 + - diff node-{{.VERSION}}-linux-arm64 node-tmp-linux-arm64 verify:build:container: desc: Verify that the existing binaries can be rebuilt exactly the same, inside tbe Docker container. @@ -140,22 +144,24 @@ tasks: sources: - '**/*.go' generates: - - node-tmp-*.bin + - node-tmp-darwin-arm64 + - node-tmp-linux-amd64 + - node-tmp-linux-arm64 cmds: - - GOOS=darwin go build -ldflags "-s -w" -o node-tmp-darwin-arm64.bin - - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o node-tmp-linux-amd64.bin - - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o node-tmp-linux-arm64.bin - - diff node-{{.VERSION}}-darwin-arm64.bin node-tmp-darwin-arm64.bin - - diff node-{{.VERSION}}-linux-amd64.bin node-tmp-linux-amd64.bin - - diff node-{{.VERSION}}-linux-arm64.bin node-tmp-linux-arm64.bin + - GOOS=darwin go build -ldflags "-s -w" -o node-tmp-darwin-arm64 + - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o node-tmp-linux-amd64 + - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o node-tmp-linux-arm64 + - diff node-{{.VERSION}}-darwin-arm64 node-tmp-darwin-arm64 + - diff node-{{.VERSION}}-linux-amd64 node-tmp-linux-amd64 + - diff node-{{.VERSION}}-linux-arm64 node-tmp-linux-arm64 verify:digest: desc: Verify that the existing digests are correct. dir: ../node cmds: - - openssl sha3-256 -out node-tmp-darwin-arm64.dgst node-{{.VERSION}}-darwin-arm64.bin - - openssl sha3-256 -out node-tmp-linux-amd64.dgst node-{{.VERSION}}-linux-amd64.bin - - openssl sha3-256 -out node-tmp-linux-arm64.dgst node-{{.VERSION}}-linux-arm64.bin + - openssl sha3-256 -out node-tmp-darwin-arm64.dgst node-{{.VERSION}}-darwin-arm64 + - openssl sha3-256 -out node-tmp-linux-amd64.dgst node-{{.VERSION}}-linux-amd64 + - openssl sha3-256 -out node-tmp-linux-arm64.dgst node-{{.VERSION}}-linux-arm64 - diff node-{{.VERSION}}-darwin-arm64.dgst node-tmp-darwin-arm64.dgst - diff node-{{.VERSION}}-linux-amd64.dgst node-tmp-linux-amd64.dgst - diff node-{{.VERSION}}-linux-arm64.dgst node-tmp-linux-arm64.dgst diff --git a/signers/pems/16.pem b/signers/pems/16.pem new file mode 100644 index 0000000..342ea8f --- /dev/null +++ b/signers/pems/16.pem @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MEMwBQYDK2VxAzoAbihy9zxIaMQoa+97/i9UeaQcQvTgdQXvpIg8eVDHQCUuDup4 +7vEMWEsZsdzaAfd2fTE10HwzJEEA +-----END PUBLIC KEY----- diff --git a/signers/pems/17.pem b/signers/pems/17.pem new file mode 100644 index 0000000..0683f45 --- /dev/null +++ b/signers/pems/17.pem @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MEMwBQYDK2VxAzoAoRSwYfjTXj80l8jEPYO6a0r2eqezm3Q7Gwo18tZhELUFHdPY +b2m1cSKjW2TmJLgYC+5jthUvzkKA +-----END PUBLIC KEY-----