From 918800139cb596492ef04a89849747926c0b5373 Mon Sep 17 00:00:00 2001 From: Aayush Gautam Date: Tue, 30 May 2023 14:11:08 +0800 Subject: [PATCH] version set to 0.2.5 --- Makefile | 2 +- docs/cli_installation_instructions.md | 8 ++++---- internal/cli/keyshares.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e943831..ad2e77e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = 0.2.4 +VERSION = 0.2.5 GOBASE = $(shell pwd) GOBIN = $(GOBASE)/build/bin GOCMD = $(GOBASE)/cmd diff --git a/docs/cli_installation_instructions.md b/docs/cli_installation_instructions.md index 64d85af..2422701 100644 --- a/docs/cli_installation_instructions.md +++ b/docs/cli_installation_instructions.md @@ -4,8 +4,8 @@ Downloads |Version|Link| os|arch| |-------|----|---|----| -|0.2.4| https://github.com/RockX-SG/rockx-dkg-cli/releases/download/v0.2.4/rockx-dkg-cli.0.2.4.darwin.arm64.tar.gz | darwin| arm64| -|0.2.4| https://github.com/RockX-SG/rockx-dkg-cli/releases/download/v0.2.4/rockx-dkg-cli.0.2.4.linux.amd64.tar.gz | linux| amd64| +|0.2.5| https://github.com/RockX-SG/rockx-dkg-cli/releases/download/v0.2.5/rockx-dkg-cli.0.2.5.darwin.arm64.tar.gz | darwin| arm64| +|0.2.5| https://github.com/RockX-SG/rockx-dkg-cli/releases/download/v0.2.5/rockx-dkg-cli.0.2.5.linux.amd64.tar.gz | linux| amd64| ### Installation (for os: darwin and arch: arm64) @@ -13,13 +13,13 @@ Downloads 1. Download the latest version of the cli tool from above page ``` -wget https://github.com/RockX-SG/rockx-dkg-cli/releases/download/v0.2.4/rockx-dkg-cli.0.2.4.linux.amd64.tar.gz +wget https://github.com/RockX-SG/rockx-dkg-cli/releases/download/v0.2.5/rockx-dkg-cli.0.2.5.linux.amd64.tar.gz ``` 2. Extract the cli ``` -tar -xzvf rockx-dkg-cli.0.2.4.linux.amd64.tar.gz +tar -xzvf rockx-dkg-cli.0.2.5.linux.amd64.tar.gz ``` 3. Move the file to your PATH and Set messenger service address for the cli diff --git a/internal/cli/keyshares.go b/internal/cli/keyshares.go index 37bbcc2..d7060d4 100644 --- a/internal/cli/keyshares.go +++ b/internal/cli/keyshares.go @@ -122,7 +122,7 @@ func sharesToBytes(publicKeys []string, privateKeys []string) string { arrayEncryptedShares := bytes.Join(toArrayByteSlices(encryptedShares), []byte{}) // public keys hex encoded - pkHex := hex.EncodeToString(arrayPublicKeys) + pkHex := "0x" + hex.EncodeToString(arrayPublicKeys) // length of the public keys (hex), hex encoded pkHexLength := fmt.Sprintf("%04x", len(pkHex))