-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review suggestions: use v3Keystores instead of the term wallet
- Loading branch information
1 parent
58ad6eb
commit b865aef
Showing
10 changed files
with
126 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...in/java/tech/pegasys/web3signer/commandline/config/PicoV3KeystoresBulkloadParameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright 2022 ConsenSys AG. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
package tech.pegasys.web3signer.commandline.config; | ||
|
||
import static tech.pegasys.web3signer.commandline.DefaultCommandValues.PATH_FORMAT_HELP; | ||
|
||
import tech.pegasys.web3signer.signing.config.KeystoresParameters; | ||
|
||
import java.nio.file.Path; | ||
|
||
import picocli.CommandLine.Option; | ||
|
||
public class PicoV3KeystoresBulkloadParameters implements KeystoresParameters { | ||
@Option( | ||
names = {KEYSTORES_PATH}, | ||
description = | ||
"The path to a directory storing v3 keystore files. Keystore files must use a .json file extension.", | ||
paramLabel = PATH_FORMAT_HELP) | ||
private Path keystoresPath; | ||
|
||
@Option( | ||
names = {KEYSTORES_PASSWORDS_PATH}, | ||
description = | ||
"The path to a directory with the corresponding password files for the v3 keystore files. " | ||
+ "Filename must match the corresponding wallet filename but with a .txt extension. This cannot be set if " | ||
+ KEYSTORES_PASSWORD_FILE | ||
+ " is also specified.", | ||
paramLabel = PATH_FORMAT_HELP) | ||
private Path keystoresPasswordsPath; | ||
|
||
@Option( | ||
names = {KEYSTORES_PASSWORD_FILE}, | ||
description = | ||
"The path to a file that contains the password that all keystores use. This cannot be set if " | ||
+ KEYSTORES_PASSWORDS_PATH | ||
+ " is also specified.", | ||
paramLabel = PATH_FORMAT_HELP) | ||
private Path keystoresPasswordFile; | ||
|
||
@Override | ||
public Path getKeystoresPath() { | ||
return keystoresPath; | ||
} | ||
|
||
@Override | ||
public Path getKeystoresPasswordsPath() { | ||
return keystoresPasswordsPath; | ||
} | ||
|
||
@Override | ||
public Path getKeystoresPasswordFile() { | ||
return keystoresPasswordFile; | ||
} | ||
} |
69 changes: 0 additions & 69 deletions
69
.../main/java/tech/pegasys/web3signer/commandline/config/PicoV3WalletBulkloadParameters.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.