Skip to content

Commit 811c177

Browse files
authored
Merge pull request #361 from WeBankBlockchain/feature/reconstruction
release 3.1.0-rc.1
2 parents 9f4be85 + 85f6729 commit 811c177

File tree

121 files changed

+5100
-572
lines changed

Some content is hidden

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

121 files changed

+5100
-572
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### V3.1.0 (2023-4-28)
2+
- Features:
3+
1. Add a way for local databases to deploy WeIdentity without deploying blockchain
4+
- Bugfixes:
5+
1. Upgrade components with known vulnerabilities
6+
17
### V3.0.0 (2022-12-15)
28
- Features:
39
1. The project was restructured to strip the blockchain-related functions and interfaces from the project, as well as the file transfer and format conversion functions from the project

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.0-rc.1
1+
3.1.0-rc.1

build.gradle

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ List lombok = [
8080
"org.projectlombok:lombok:1.18.10"
8181
]
8282

83-
def log4j_version="2.18.0"
83+
def log4j_version="2.20.0"
8484
List logger = [
8585
"org.slf4j:jul-to-slf4j:1.7.30",
8686
"org.apache.logging.log4j:log4j-api:$log4j_version",
@@ -106,7 +106,7 @@ List jmockit = [
106106
"org.jmockit:jmockit:1.47"
107107
]
108108

109-
def jackson_version="2.13.3"
109+
def jackson_version="2.14.2"
110110
List json = [
111111
"com.fasterxml.jackson.core:jackson-databind:$jackson_version",
112112
"com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jackson_version",
@@ -116,7 +116,7 @@ List json = [
116116
"com.networknt:json-schema-validator:1.0.71",
117117
]
118118

119-
def gson_version = "2.8.9"
119+
def gson_version = "2.10.1"
120120
List gson = [
121121
"com.google.code.gson:gson:$gson_version"
122122
]
@@ -127,7 +127,7 @@ List mysql_driver = [
127127
]
128128

129129
List redisson = [
130-
"org.redisson:redisson:3.13.1"
130+
"org.redisson:redisson:3.20.0"
131131
]
132132

133133
List zxing = [
@@ -145,7 +145,7 @@ List pdfbox = [
145145
]
146146

147147
List protobuf = [
148-
"com.google.protobuf:protobuf-java:3.19.2"
148+
"com.google.protobuf:protobuf-java:3.22.2"
149149
]
150150

151151
List caffeine = [
@@ -156,8 +156,13 @@ List oval = [
156156
"net.sf.oval:oval:3.2.1"
157157
]
158158

159+
List xstream = [
160+
"com.thoughtworks.xstream:xstream:1.4.20"
161+
]
162+
159163
List spring = [
160-
"org.springframework:spring-core:5.3.21"
164+
"org.springframework:spring-core:5.3.21",
165+
"org.springframework:spring-context:5.3.25"
161166
]
162167

163168
configurations {
@@ -172,10 +177,9 @@ configurations.all {
172177
dependencies {
173178
localDeps 'org.projectlombok:lombok:1.18.10'
174179
if (!gradle.startParameter.isOffline()) {
175-
compile logger, lombok, apache_commons, json, mysql_driver, redisson, zxing, rpc, pdfbox, protobuf, caffeine, oval, gson
180+
compile logger, lombok, apache_commons, json, mysql_driver, redisson, zxing, rpc, pdfbox, protobuf, caffeine, oval, gson, spring, xstream
176181
//compile("com.webank:weid-contract-java:1.3.1-rc.2-SNAPSHOT")
177-
//compile("com.webank:weid-contract-java:1.3.1-rc1")
178-
compile("com.webank:weid-blockchain:3.0.0-rc.1")
182+
compile("com.webank:weid-blockchain:3.1.0-rc.1")
179183

180184
compile fileTree(dir: 'lib', include: '*.jar')
181185
implementation 'com.google.guava:guava:31.1-jre'
@@ -184,7 +188,7 @@ dependencies {
184188
implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.15'
185189
annotationProcessor lombok
186190

187-
testCompile logger, lombok, apache_commons, json, junit, jmockit, rpc, pdfbox, protobuf, caffeine, oval, spring, gson
191+
testCompile logger, lombok, apache_commons, json, junit, jmockit, rpc, pdfbox, protobuf, caffeine, oval, spring, gson, xstream
188192
testAnnotationProcessor lombok
189193
}
190194
if (gradleVer.startsWith("4")) {

dist/conf/fisco.properties.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ group.id=1
5757
sdk.sm-crypto=${SDK_SM_CRYPTO}
5858
# fisco-bcos sdk cert path contains[ca.crt,sdk.crt,sdk.key]
5959
# if sdk.sm-crypto is true, contains [gm] directory, and gm dir contains [gmca.crt,gmsdk.crt,gmsdk.key,gmensdk.crt,gmensdk.key]
60-
sdk.cert-path=conf
60+
sdk.cert-path=resources/conf
6161

6262
# amop public key of pem and private key of p12 configuration
63-
amop.pub-path=conf/amop/consumer_public_key.pem
64-
amop.pri-path=conf/amop/consumer_private_key.p12
63+
amop.pub-path=resources/conf/amop/consumer_public_key.pem
64+
amop.pri-path=resources/conf/amop/consumer_private_key.p12
6565
amop.p12-password=123456

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
22
jdkTlsNamedGroups=secp256r1,secp256k1
3-
repoType=cn
4-
signing.keyId=
5-
signing.password=
6-
signing.secretKeyRingFile=
7-
sonatypeUsername=
8-
sonatypePassword=
3+
repoType=zn
4+
signing.keyId=62A32F80
5+
signing.password=***REMOVED***
6+
signing.secretKeyRingFile=./secring.gpg
7+
sonatypeUsername=tonychen
8+
sonatypePassword=***REMOVED***

src/main/java/com/webank/weid/app/AppCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import com.webank.weid.constant.ErrorCode;
66
import com.webank.weid.exception.InitWeb3jException;
7-
import com.webank.weid.protocol.response.ResponseData;
7+
import com.webank.weid.blockchain.protocol.response.ResponseData;
88
import com.webank.weid.service.rpc.WeIdService;
99
import com.webank.weid.service.impl.WeIdServiceImpl;
1010
import org.apache.commons.lang3.StringUtils;

src/main/java/com/webank/weid/constant/DataDriverConstant.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,25 @@ public final class DataDriverConstant {
280280
public static final String DOMAIN_RESOURCE_INFO = "domain.resourceInfo";
281281

282282
public static final String DOMAIN_WEID_AUTH = "domain.weIdAuth";
283+
284+
/**
285+
* 本地运行所需表.
286+
*/
287+
288+
public static final String LOCAL_WEID_DOCUMENT = "local.weIdDocument";
289+
290+
public static final String LOCAL_CPT = "local.cpt";
291+
292+
public static final String LOCAL_POLICY = "local.policy";
293+
294+
public static final String LOCAL_PRESENTATION = "local.presentation";
295+
296+
public static final String LOCAL_ROLE = "local.role";
297+
298+
public static final String LOCAL_AUTHORITY_ISSUER = "local.authorityIssuer";
299+
300+
public static final String LOCAL_SPECIFIC_ISSUER = "local.specificIssuer";
301+
302+
public static final String LOCAL_EVIDENCE = "local.evidence";
303+
283304
}

src/main/java/com/webank/weid/constant/WeIdConstant.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ public final class WeIdConstant {
263263

264264
public static final Long RECOGNIZED_AUTHORITY_ISSUER_FLAG = 1L;
265265

266+
/*
267+
* State file path for run local
268+
*/
269+
public static final String STATE_FILE_PATH = "output/local_state";
270+
266271
public static enum PublicKeyType {
267272
SM2("SM2"),
268273
//RSA("RSA"),

src/main/java/com/webank/weid/exception/DataTypeCastException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package com.webank.weid.exception;
44

5-
import com.webank.weid.constant.ErrorCode;
5+
import com.webank.weid.blockchain.constant.ErrorCode;
66

77
/**
88
* WeIdBase Exception. Base Exception for WeIdentity Project.

src/main/java/com/webank/weid/exception/DatabaseException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package com.webank.weid.exception;
44

5-
import com.webank.weid.constant.ErrorCode;
5+
import com.webank.weid.blockchain.constant.ErrorCode;
66

77
/**
88
* Database Exception. Base Exception for WeIdentity Project.

0 commit comments

Comments
 (0)