Skip to content

Commit

Permalink
fix: change byte size to hex size
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush-rockx committed May 24, 2023
1 parent 2755b67 commit ac286f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/keyshares.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func sharesToBytes(publicKeys []string, privateKeys []string) string {
// public keys hex encoded
pkHex := hex.EncodeToString(arrayPublicKeys)
// length of the public keys (hex), hex encoded
pkHexLength := fmt.Sprintf("%04x", len(pkHex)/2)
pkHexLength := fmt.Sprintf("%04x", len(pkHex))

// join arrays
pkPsBytes := append(arrayPublicKeys, arrayEncryptedShares...)
Expand Down

0 comments on commit ac286f8

Please sign in to comment.