Increase min required difficulty to 36 in signing service (#3535)
This commit is contained in:
parent
9dce3dc942
commit
20623fdc96
@ -37,7 +37,7 @@ type Config struct {
|
||||
AuthorizationDB authorization.DBConfig
|
||||
AuthorizationAddr string `default:"127.0.0.1:9000" help:"address for authorization http proxy to listen on"`
|
||||
|
||||
MinDifficulty uint `default:"30" help:"minimum difficulty of the requester's identity required to claim an authorization"`
|
||||
MinDifficulty uint `default:"36" help:"minimum difficulty of the requester's identity required to claim an authorization"`
|
||||
}
|
||||
|
||||
// Peer is the certificates server.
|
||||
|
@ -41,7 +41,7 @@ var (
|
||||
keyCfg struct {
|
||||
// TODO: where is this used and should it be conistent with "latest" alias?
|
||||
VersionNumber uint `default:"0" help:"version of identity (0 is latest)"`
|
||||
MinDifficulty int `help:"minimum difficulty to output" default:"30"`
|
||||
MinDifficulty int `help:"minimum difficulty to output" default:"36"`
|
||||
Concurrency int `help:"worker concurrency" default:"4"`
|
||||
OutputDir string `help:"output directory to place keys" default:"."`
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ type CASetupConfig struct {
|
||||
ParentKeyPath string `help:"path to the parent authority's private key"`
|
||||
CertPath string `help:"path to the certificate chain for this identity" default:"$IDENTITYDIR/ca.cert"`
|
||||
KeyPath string `help:"path to the private key for this identity" default:"$IDENTITYDIR/ca.key"`
|
||||
Difficulty uint64 `help:"minimum difficulty for identity generation" default:"30"`
|
||||
Difficulty uint64 `help:"minimum difficulty for identity generation" default:"36"`
|
||||
Timeout string `help:"timeout for CA generation; golang duration string (0 no timeout)" default:"5m"`
|
||||
Overwrite bool `help:"if true, existing CA certs AND keys will overwritten" default:"false" setup:"true"`
|
||||
Concurrency uint `help:"number of concurrent workers for certificate authority generation" default:"4"`
|
||||
|
Loading…
Reference in New Issue
Block a user