Skip to content

Commit

Permalink
fix: review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guru-web3 committed Sep 7, 2023
1 parent 76b3800 commit 617c3b0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ private static Result<Boolean> copyFactorPub(ThresholdKey thresholdKey, String t
* @param thresholdKey The threshold key to act on.
* @param shareIndex The threshold key to act on.
* @param factorKey A string representing the factor key.
* @return Result<void>
* @return Result<Void>
*/
public static Result<void> backupShareWithFactorKey(ThresholdKey thresholdKey, String shareIndex, String factorKey) {
public static Result<Void> backupShareWithFactorKey(ThresholdKey thresholdKey, String shareIndex, String factorKey) {
try {
RuntimeError error = new RuntimeError();
jniBackupShareWithFactorKey(thresholdKey, shareIndex, factorKey, thresholdKey.curveN, error);
Expand Down Expand Up @@ -679,9 +679,10 @@ private static Result<Boolean> serviceProviderAssignPublicKey(ThresholdKey thres
* @param jsonPubKey A JSON representation of public key.
* @return Result<Boolean>
*/
public static Result<Boolean> serviceProviderAssignPublicKey(ThresholdKey thresholdKey, String tssTag, Integer nonce, String jsonPubKey) {
public static Result<Void> serviceProviderAssignPublicKey(ThresholdKey thresholdKey, String tssTag, Integer nonce, String jsonPubKey) {
try {
return serviceProviderAssignPublicKey(thresholdKey, tssTag, String.valueOf(nonce), jsonPubKey);
serviceProviderAssignPublicKey(thresholdKey, tssTag, String.valueOf(nonce), jsonPubKey);
return new Result.Success<>();
} catch (Exception e) {
return new Result.Error<>(e);
}
Expand Down

0 comments on commit 617c3b0

Please sign in to comment.