Skip to content

Commit 57fe3c4

Browse files
Merge pull request #292 from WeBankFinTech/release/1.8.0
Release/1.8.0
2 parents ee7b4d3 + 4f3bb75 commit 57fe3c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+478
-163
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### V1.7.0
2+
Features:
3+
1. FISCO BCOS 1.3.x support is fully removed - please use the FISCO BCOS 2.x node version respectively.
4+
2. Evidence and WeIdDocument query performance improved due to support batch type blockchain node data lookup.
5+
3. Authority Issuer can be registered by any WeID while only administrator can recognize.
6+
4. Greatly enhanced WeID-Build-Tools functionalities.
7+
5. Persistence now supports Redis as storage layer.
8+
19
### V1.6.3-hotfix-1 (2020-08-26)
210
- Bugfixes:
311
1. Use batch block transaction receipts getter to improve evidence performance.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.1
1+
1.8.0

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ dependencies {
153153
localDeps 'org.projectlombok:lombok:1.18.10'
154154
if (!gradle.startParameter.isOffline()) {
155155
compile logger, lombok, apache_commons, json, mysql_driver, redisson, zxing, rpc, pdfbox, protobuf, caffeine, oval
156-
compile("com.webank:weid-contract-java:1.2.28") {
156+
compile("com.webank:weid-contract-java:1.2.29") {
157157
exclude group: "org.slf4j", module: "slf4j-log4j12"
158158
}
159159
compile fileTree(dir: 'lib', include: '*.jar')

docs/zh_CN/docs/weidentity-java-sdk-doc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13752,7 +13752,7 @@ com.webank.weid.protocol.base.CredentialPojo
1375213752
1375313753
// Enforce a Register/Update system CPT first
1375413754
WeIdAuthentication sdkAuthen = new WeIdAuthentication();
13755-
ECKeyPair keyPair = ECKeyPair.create(new BigInteger(privateKey));
13755+
ECKeyPair keyPair = DataToolUtils.createKeyPairFromPrivate(privateKey);
1375613756
String keyWeId = WeIdUtils
1375713757
.convertAddressToWeId(new Address(Keys.getAddress(keyPair)).toString());
1375813758
sdkAuthen.setWeId(keyWeId);

src/main/java/com/webank/weid/config/FiscoConfig.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,26 @@ public class FiscoConfig {
132132
@NotNull(message = "the v2.node-key-path is undefined")
133133
@NotEmpty(message = "the value of v2.node-key-path is null")
134134
private String v2NodeKeyPath;
135+
136+
@NotNull(message = "the gm.ca-crt-path is undefined")
137+
@NotEmpty(message = "the value of gm.ca-crt-path is null")
138+
private String gmCaCrtPath;
139+
140+
@NotNull(message = "the gm.sdk-crt-path is undefined")
141+
@NotEmpty(message = "the value of gm.sdk-crt-path is null")
142+
private String gmSdkCrtPath;
143+
144+
@NotNull(message = "the gm.sdk-key-path is undefined")
145+
@NotEmpty(message = "the value of gm.sdk-key-path is null")
146+
private String gmSdkKeyPath;
147+
148+
@NotNull(message = "the gmen.sdk-crt-path is undefined")
149+
@NotEmpty(message = "the value of gmen.sdk-crt-path is null")
150+
private String gmenSdkCrtPath;
151+
152+
@NotNull(message = "the gmen.sdk-key-path is undefined")
153+
@NotEmpty(message = "the value of gmen.sdk-key-path is null")
154+
private String gmenSdkKeyPath;
135155

136156
@NotNull(message = "the blockchain.orgid is undefined")
137157
@NotEmpty(message = "the value of blockchain.orgid is null")
@@ -174,6 +194,11 @@ public boolean load() {
174194
v2CaCrtPath = PropertyUtils.getProperty("v2.ca-crt-path");
175195
v2NodeCrtPath = PropertyUtils.getProperty("v2.node-crt-path");
176196
v2NodeKeyPath = PropertyUtils.getProperty("v2.node-key-path");
197+
gmCaCrtPath = PropertyUtils.getProperty("gm.ca-crt-path");
198+
gmSdkCrtPath = PropertyUtils.getProperty("gm.sdk-crt-path");
199+
gmSdkKeyPath = PropertyUtils.getProperty("gm.sdk-key-path");
200+
gmenSdkCrtPath = PropertyUtils.getProperty("gmen.sdk-crt-path");
201+
gmenSdkKeyPath = PropertyUtils.getProperty("gmen.sdk-key-path");
177202
currentOrgId = PropertyUtils.getProperty("blockchain.orgid");
178203
amopId = PropertyUtils.getProperty("amop.id");
179204
cnsContractFollow = PropertyUtils.getProperty("cns.contract.follow");

src/main/java/com/webank/weid/protocol/cpt/Cpt109.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package com.webank.weid.protocol.cpt;
2121

22+
import com.github.reinert.jjschema.Attributes;
23+
2224
import lombok.Data;
2325

2426
/**
@@ -28,6 +30,8 @@
2830
*/
2931

3032
@Data
33+
@Attributes(title = "Trusted Timestamp",
34+
description = "Trusted Timestamp from authorized 3rd-party, or chain consensus")
3135
public class Cpt109 {
3236

3337
/**
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.webank.weid.protocol.response;
2+
3+
import java.util.List;
4+
5+
import lombok.Data;
6+
7+
/**
8+
* get WeId and errorCode by pubkeyList response.
9+
*
10+
*/
11+
@Data
12+
public class WeIdListResult {
13+
14+
private List<String> weIdList;
15+
16+
private List<Integer> errorCodeList;
17+
}

src/main/java/com/webank/weid/rpc/AuthorityIssuerService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,10 @@ ResponseData<List<String>> getAllSpecificTypeIssuerList(
169169
* @return WeID
170170
*/
171171
ResponseData<String> getWeIdByOrgId(String orgId);
172+
173+
/**
174+
* get the issuer count.
175+
* @return the all issuer
176+
*/
177+
ResponseData<Integer> getIssuerCount();
172178
}

src/main/java/com/webank/weid/rpc/CptService.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package com.webank.weid.rpc;
2121

22+
import java.util.List;
23+
2224
import com.webank.wedpr.selectivedisclosure.CredentialTemplateEntity;
2325

2426
import com.webank.weid.protocol.base.Cpt;
@@ -101,4 +103,20 @@ public interface CptService {
101103
* @return The updated CPT info
102104
*/
103105
ResponseData<CredentialTemplateEntity> queryCredentialTemplate(Integer cptId);
106+
107+
/**
108+
* Get CPTIDS from chain.
109+
*
110+
* @param startPos start position
111+
* @param num batch number
112+
* @return CPTID list
113+
*/
114+
ResponseData<List<Integer>> getCptIdList(Integer startPos, Integer num);
115+
116+
/**
117+
* Get CPT count.
118+
*
119+
* @return the cpt count
120+
*/
121+
ResponseData<Integer> getCptCount();
104122
}

src/main/java/com/webank/weid/rpc/PolicyService.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,11 @@ ResponseData<Integer> registerPresentationPolicy(List<Integer> claimPolicyIdList
8686
* @return claim policy list
8787
*/
8888
ResponseData<List<Integer>> getAllClaimPolicies(Integer startPos, Integer num);
89+
90+
/**
91+
* Get Policy count.
92+
*
93+
* @return the Policy count
94+
*/
95+
ResponseData<Integer> getPolicyCount();
8996
}

0 commit comments

Comments
 (0)