-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from CoboCustody/bug_fix_tss_request_meta
update mpc api
- Loading branch information
Showing
4 changed files
with
154 additions
and
3 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
src/main/java/com/cobo/custody/api/client/domain/transaction/TssNodeKeyGenMeta.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,47 @@ | ||
package com.cobo.custody.api.client.domain.transaction; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
public class TssNodeKeyGenMeta { | ||
@JsonProperty(value = "cobo_id") | ||
private String coboId; | ||
@JsonProperty(value = "threshold") | ||
private Integer threshold; | ||
@JsonProperty(value = "node_ids") | ||
private List<String> nodeIds; | ||
|
||
public String getCoboId() { | ||
return coboId; | ||
} | ||
|
||
public void setCoboId(String coboId) { | ||
this.coboId = coboId; | ||
} | ||
|
||
public Integer getThreshold() { | ||
return threshold; | ||
} | ||
|
||
public void setThreshold(Integer threshold) { | ||
this.threshold = threshold; | ||
} | ||
|
||
public List<String> getNodeIds() { | ||
return nodeIds; | ||
} | ||
|
||
public void setNodeIds(List<String> nodeIds) { | ||
this.nodeIds = nodeIds; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "{" + | ||
"coboId='" + coboId + '\'' + | ||
", threshold='" + threshold + '\'' + | ||
", nodeIds='" + nodeIds + '\'' + | ||
'}'; | ||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
src/main/java/com/cobo/custody/api/client/domain/transaction/TssNodeKeyReShareMeta.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,70 @@ | ||
package com.cobo.custody.api.client.domain.transaction; | ||
|
||
import com.fasterxml.jackson.annotation.JacksonInject; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
public class TssNodeKeyReShareMeta { | ||
@JsonProperty(value = "cobo_id") | ||
private String coboId; | ||
@JsonProperty(value = "old_threshold") | ||
private Integer oldThreshold; | ||
@JsonProperty(value = "old_node_ids") | ||
private List<String> oldNodeIds; | ||
@JsonProperty(value = "new_threshold") | ||
private Integer newThreshold; | ||
@JsonProperty(value = "new_node_ids") | ||
private List<String> newNodeIds; | ||
|
||
public String getCoboId() { | ||
return coboId; | ||
} | ||
|
||
public void setCoboId(String coboId) { | ||
this.coboId = coboId; | ||
} | ||
|
||
public Integer getOldThreshold() { | ||
return oldThreshold; | ||
} | ||
|
||
public void setOldThreshold(Integer oldThreshold) { | ||
this.oldThreshold = oldThreshold; | ||
} | ||
|
||
public List<String> getOldNodeIds() { | ||
return oldNodeIds; | ||
} | ||
|
||
public void setOldNodeIds(List<String> oldNodeIds) { | ||
this.oldNodeIds = oldNodeIds; | ||
} | ||
|
||
public Integer getNewThreshold() { | ||
return newThreshold; | ||
} | ||
|
||
public void setNewThreshold(Integer newThreshold) { | ||
this.newThreshold = newThreshold; | ||
} | ||
|
||
public List<String> getNewNodeIds() { | ||
return newNodeIds; | ||
} | ||
|
||
public void setNewNodeIds(List<String> newNodeIds) { | ||
this.newNodeIds = newNodeIds; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "{" + | ||
"coboId='" + coboId + | ||
", oldThreshold='" + oldThreshold + | ||
", oldNodeIds='" + oldNodeIds + | ||
", newThreshold='" + newThreshold + | ||
", newNodeIds='" + newNodeIds + | ||
'}'; | ||
} | ||
} |
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
34 changes: 34 additions & 0 deletions
34
src/main/java/com/cobo/custody/api/client/domain/transaction/TssNodeRequestMeta.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,34 @@ | ||
package com.cobo.custody.api.client.domain.transaction; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class TssNodeRequestMeta { | ||
@JsonProperty(value = "key_gen") | ||
private TssNodeKeyGenMeta genMeta; | ||
@JsonProperty(value = "key_reshare") | ||
private TssNodeKeyReShareMeta reShareMeta; | ||
|
||
public TssNodeKeyGenMeta getGenMeta() { | ||
return genMeta; | ||
} | ||
|
||
public void setGenMeta(TssNodeKeyGenMeta genMeta) { | ||
this.genMeta = genMeta; | ||
} | ||
|
||
public TssNodeKeyReShareMeta getReShareMeta() { | ||
return reShareMeta; | ||
} | ||
|
||
public void setReShareMeta(TssNodeKeyReShareMeta reShareMeta) { | ||
this.reShareMeta = reShareMeta; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "{" + | ||
"genMeta='" + genMeta + '\'' + | ||
", reShareMeta='" + reShareMeta + '\'' + | ||
'}'; | ||
} | ||
} |