File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -696,12 +696,12 @@ func main() {
696696 failedCounter := 0
697697 for _ , path := range c .Args () {
698698 err := updatekeys .UpdateKeys (updatekeys.Opts {
699- InputPath : path ,
700- GroupQuorum : c .Int ("shamir-secret-sharing-threshold" ),
701- KeyServices : keyservices (c ),
702- Interactive : ! c .Bool ("yes" ),
703- ConfigPath : configPath ,
704- InputType : c .String ("input-type" ),
699+ InputPath : path ,
700+ ShamirThreshold : c .Int ("shamir-secret-sharing-threshold" ),
701+ KeyServices : keyservices (c ),
702+ Interactive : ! c .Bool ("yes" ),
703+ ConfigPath : configPath ,
704+ InputType : c .String ("input-type" ),
705705 })
706706
707707 if c .NArg () == 1 {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
1515// Opts represents key operation options and config
1616type Opts struct {
1717 InputPath string
18- GroupQuorum int
18+ ShamirThreshold int
1919 KeyServices []keyservice.KeyServiceClient
2020 DecryptionOrder []string
2121 Interactive bool
@@ -70,8 +70,8 @@ func updateFile(opts Opts) error {
7070 // TODO: use conf.ShamirThreshold instead of tree.Metadata.ShamirThreshold in the next line?
7171 // Or make this configurable?
7272 var shamirThreshold = tree .Metadata .ShamirThreshold
73- if opts .GroupQuorum != 0 {
74- shamirThreshold = opts .GroupQuorum
73+ if opts .ShamirThreshold != 0 {
74+ shamirThreshold = opts .ShamirThreshold
7575 }
7676 shamirThreshold = min (shamirThreshold , len (conf .KeyGroups ))
7777 var shamirThresholdWillChange = tree .Metadata .ShamirThreshold != shamirThreshold
You can’t perform that action at this time.
0 commit comments