Skip to content

Commit

Permalink
Use old flag and json id
Browse files Browse the repository at this point in the history
  • Loading branch information
alxdavids committed Apr 11, 2018
1 parent 7186e90 commit 9a4c887
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -23,9 +23,9 @@ This is a TCP server that is comptaible with the [Privacy Pass](https://github.c

To run the server:

`go run server/main.go --sign_key testdata/p256-key.pem --comm testdata/test-p256-commitment`
`go run server/main.go --key testdata/p256-key.pem --comm testdata/test-p256-commitment`

here, `sign_key` is the current secret key used for signing, `comm` is the public commitment to the signing key.
here, `key` is the current secret key used for signing, `comm` is the public commitment to the signing key.

To demo token issuance:

Expand Down
4 changes: 2 additions & 2 deletions server/main.go
Expand Up @@ -38,7 +38,7 @@ type Server struct {
ListenPort int `json:"listen_port,omitempty"`
MetricsPort int `json:"metrics_port,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
SignKeyFilePath string `json:"sign_key_file_path"`
SignKeyFilePath string `json:"key_file_path"`
RedeemKeysFilePath string `json:"redeem_keys_file_path"`
CommFilePath string `json:"comm_file_path"`

Expand Down Expand Up @@ -232,7 +232,7 @@ func main() {

flag.StringVar(&configFile, "config", "", "local config file for development (overrides cli options)")
flag.StringVar(&srv.BindAddress, "addr", "127.0.0.1", "address to listen on")
flag.StringVar(&srv.SignKeyFilePath, "sign_key", "", "path to the current secret key file for signing tokens")
flag.StringVar(&srv.SignKeyFilePath, "key", "", "path to the current secret key file for signing tokens")
flag.StringVar(&srv.RedeemKeysFilePath, "redeem_keys", "", "(optional) path to the file containing all other keys that are still used for validating redemptions")
flag.StringVar(&srv.CommFilePath, "comm", "", "path to the commitment file")
flag.IntVar(&srv.ListenPort, "p", 2416, "port to listen on")
Expand Down

0 comments on commit 9a4c887

Please sign in to comment.