Skip to content

Commit 6207613

Browse files
authored
Merge pull request #187 from WeBankFinTech/release/1.0.23
Release/1.0.23
2 parents e18a708 + 8d627b3 commit 6207613

37 files changed

+1326
-906
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
### V1.0.23 (2021-01-26)
2+
3+
* 新增功能:
4+
1. 支持国密版本安装部署
5+
2. 新增数据概览面板
6+
3. 支持CPT实时链上查询和分页查询
7+
4. 支持Policy链上注册及查询
8+
9+
### V1.0.22 (2020-12-20)
10+
11+
* 新增功能:
12+
1. 适配weid-java-sdk1.7.1
13+
14+
### V1.0.21 (2020-11-20)
15+
16+
* 新增功能:
17+
1. 合约部署支持备注
18+
2. 支持查询存证合约启用机构列表
19+
3. 权威机构注册添加描述
20+
4. 权威机构自主注册以及管理员认证和撤销
21+
5. 安装脚本支持指定端口安装
22+
6. 修复weid列表查询分页bug
23+
7. 优化webase集成
24+
25+
### V1.0.20 (2020-11-10)
26+
27+
* 系统优化:
28+
1. 升级web3sdk版本到2.4.4
29+
2. 升级spring版本到5.2.8
30+
3. 升级weid-java-sdk版本到1.6.7
31+
32+
### V1.0.19 (2020-09-19)
33+
34+
* 新增功能:
35+
1. 优化cpt注册相关功能。
36+
2. 支持weid历史查询。
37+
3. 支持redis配置。
38+
4. 集成webase安装,访问。
39+
5. 其他界面节优化。
40+
141
### V1.0.7 (2019-08-22)
242

343
* 新增功能:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ WeIdentity JAVA SDK安装部署工具
1111

1212
| weid-build-tools 版本 | weid-java-sdk 版本 | weid-contract-java 版本 |
1313
| :---- | :---- | :---- |
14+
| v1.0.23 | v1.8.0 | v1.2.29 |
1415
| v1.0.22 | v1.7.1 | v1.2.28 |
1516
| v1.0.21 | v1.7.0 | v1.2.27 |
1617
| v1.0.20 | v1.6.7 | v1.2.26 |

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.22
1+
1.0.23

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'org.springframework.boot' version '2.2.2.RELEASE'
2+
id 'org.springframework.boot' version '2.4.1'
33
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
44
id 'java'
55
}
@@ -96,7 +96,7 @@ List redis_driver = [
9696
"org.redisson:redisson:3.13.1"
9797
]
9898

99-
def spring_version = "5.2.8.RELEASE"
99+
def spring_version = "5.3.2"
100100
List spring = [
101101
"org.springframework:spring-aop:$spring_version",
102102
"org.springframework:spring-beans:$spring_version",

common/script/tpl/fisco.properties.tpl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ web3sdk.keep-alive-seconds=60
4747
#######################################################################################################
4848
# Fisco-Bcos 2.x params, including Group ID and Encrypt Type
4949
group.id=${GROUP_ID}
50-
encrypt.type=0
50+
# Fisco-Bcos encrypt type, 0:ECDSA 1:SM2
51+
encrypt.type=${ENCRYPT_TYPE}
5152

5253

5354
#######################################################################################################
@@ -62,4 +63,11 @@ v1.client-key-store-path=client.keystore
6263
v1.key-store-password=123456
6364
v2.ca-crt-path=ca.crt
6465
v2.node-crt-path=node.crt
65-
v2.node-key-path=node.key
66+
v2.node-key-path=node.key
67+
68+
# gm
69+
gm.ca-crt-path=gmca.crt
70+
gm.sdk-crt-path=gmsdk.crt
71+
gm.sdk-key-path=gmsdk.key
72+
gmen.sdk-crt-path=gmensdk.crt
73+
gmen.sdk-key-path=gmensdk.key

common/script/tpl/run.config.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ chain_id=1
2525
#group id
2626
group_id=1
2727

28+
#encrypt type, 0:非国密;1:国密
29+
encrypt_type=0
30+
2831
#Configure your database information
2932
persistence_type=
3033
mysql_address=

compile.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ function compile()
8484
export BLOCKCHIAN_NODE_INFO=$(echo -e ${content})
8585
export CHAIN_ID=${chain_id}
8686
export GROUP_ID=${group_id}
87+
export ENCRYPT_TYPE=${encrypt_type}
8788
export CNS_PROFILE_ACTIVE=${cns_profile_active}
8889
export FISCO_BCOS_VERSION=${blockchain_fiscobcos_version}
89-
FISCOVAS='${GROUP_ID}:${CHAIN_ID}:${FISCO_BCOS_VERSION}:${CNS_PROFILE_ACTIVE}'
90+
FISCOVAS='${GROUP_ID}:${CHAIN_ID}:${ENCRYPT_TYPE}:${FISCO_BCOS_VERSION}:${CNS_PROFILE_ACTIVE}'
9091
envsubst ${FISCOVAS}} < ${FISCO_XML_CONFIG_TPL} >${FISCO_XML_CONFIG}
9192
if [ -f ${FISCO_XML_CONFIG_TMP} ];then
9293
rm ${FISCO_XML_CONFIG_TMP}

deploy.sh

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ port=$(grep "server\.port" $applicationFile |awk -F "=" '{print $2}')
1010
function reloadAddressForWeb() {
1111
export WEB_PID=`ps aux|grep "BuildToolApplication" | grep -v grep|awk '{print $2}'|head -1`
1212
if [ -n "$WEB_PID" ];then
13-
curl http://localhost:${port}/reloadAddress
13+
curl http://localhost:${port}/weid/weid-build-tools/reloadAddress
1414
fi
1515
}
1616

@@ -106,21 +106,28 @@ function clean_data()
106106

107107
function check_node_cert(){
108108

109-
cd ${SOURCE_CODE_DIR}/resources
110-
if [ "${blockchain_fiscobcos_version}" = "1" ];then
109+
cd ${SOURCE_CODE_DIR}/resources
110+
if [ "${blockchain_fiscobcos_version}" = "1" ];then
111111
if [ ! -f ca.crt -o ! -f client.keystore ];then
112-
echo "ERROR : fisco bcos version is 1.3, ca.crt and client.keystore are needed."
113-
exit 1
114-
fi
112+
echo "ERROR : fisco bcos version is 1.3, ca.crt and client.keystore are needed."
113+
exit 1
114+
fi
115115
elif [ "${blockchain_fiscobcos_version}" = "2" ];then
116-
if [ ! -f ca.crt -o ! -f node.crt -o ! -f node.key ];then
117-
echo "ERROR : fisco bcos version is 2.0. ca.crt, node.crt and node.key are needed."
118-
exit 1
116+
if [ "${encrypt_type}" = "0" ];then
117+
if [ ! -f ca.crt -o ! -f node.crt -o ! -f node.key ];then
118+
echo "ERROR : fisco bcos version is 2.0. encrypt type is ECDSA, ca.crt, node.crt and node.key are needed."
119+
exit 1
120+
fi
121+
else
122+
if [ ! -f gmca.crt -o ! -f gmsdk.crt -o ! -f gmsdk.key -o ! -f gmensdk.crt -o ! -f gmensdk.key ];then
123+
echo "ERROR : fisco bcos version is 2.0, encrypt type is SM2, gmca.crt, gmsdk.crt, gmsdk.key, gmensdk.crt and gmensdk.key are needed."
124+
exit 1
125+
fi
119126
fi
120127
else
121128
echo "the version : ${blockchain_fiscobcos_version} is not supported, we only support FISCO BCOS 1.3 and 2.0."
122129
exit 1
123-
fi
130+
fi
124131
}
125132

126133
function main()

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
2-
weidSdkVersion=1.7.1
2+
weidSdkVersion=1.8.0
33
repoType=cn
44
jdkTlsNamedGroups=secp256r1,secp256k1
55
signing.keyId=

run.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ chain_id=1
2525
#group id
2626
group_id=1
2727

28+
#encrypt type, 0:非国密;1:国密
29+
encrypt_type=0
30+
2831
#Configure your database information
2932
#persistence_type is "mysql" or "redis"
3033
persistence_type=

0 commit comments

Comments
 (0)