Skip to content

Commit

Permalink
Fix sign mode comment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nitronit committed Jan 16, 2024
1 parent 493d6af commit d485298
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/horcrux/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ for threshold signer mode, --cosigner flags and --threshold flag are required.

f := cmd.Flags()
f.StringP(flagSignMode, "m", string(cconfig.SignModeThreshold),
`sign mode, "threshold" (recommended) or "single" (unsupported). threshold mode requires --cosigner (multiple) and --threshold`, // nolint
`sign mode, "threshold" (recommended) or "single" (unsupported). threshold mode requires --cosigner (multiple) and --threshold`, //nolint
)
f.StringSliceP(flagNode, "n", []string{}, "chain cosigner in format tcp://{node-addr}:{privval-port} \n"+
"(e.g. --node tcp://sentry-1:1234 --node tcp://sentry-2:1234 --node tcp://sentry-3:1234 )")
Expand Down
1 change: 0 additions & 1 deletion src/tss/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ package tss
//
// Note: This is a simplified example. The actual usage may be different depending on the specifics of the threshold signature scheme.
*/

2 changes: 1 addition & 1 deletion src/tss/threshold_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func GeneratePersistentThresholdSignShards[Key Ed25519Key](privateKey []byte, pu

vaultKeys := make([]Key, len(keys))
for id, key := range keys {
vaultKeys[id] = Key{
vaultKeys[id-1] = Key{
PubKey: publicKey,
PrivateShard: key,
ID: int(id),
Expand Down

0 comments on commit d485298

Please sign in to comment.