Skip to content

Commit

Permalink
remove sensitive information
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Feb 17, 2020
1 parent a1e8489 commit 428e5f2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions docs/community/存证sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ evidence/src/main/resources/applicationContext.xml文件配置说明

### 5.2 区块链节点信息配置

<bean id="channelService" class="cn.webank.channel.client.Service">
<bean id="channelService" class="org.bcos.channel.client.Service">
<property name="orgID" value="User" /><!-- 配置角色名称 -->
<property name="allChannelConnections">
<map>
<entry key="User"><!-- 配置本角色的区块链节点列表-->
<bean class="cn.webank.channel.handler.ChannelConnections">
<bean class="org.bcos.channel.handler.ChannelConnections">
<property name="connectionsStr">
<list>
<value>User@127.0.0.1:8541</value><!-- 格式:节点nodeId@IP地址:链上链下端口-->
Expand Down
34 changes: 17 additions & 17 deletions docs/features/AMOP/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ SDK配置(Spring Bean):
</bean>
<!-- 区块链节点信息配置 -->
<bean id="channelService" class="cn.webank.channel.client.Service">
<bean id="channelService" class="org.bcos.channel.client.Service">
<property name="orgID" value="WB" /> <!-- 配置本机构名称 -->
<property name="allChannelConnections">
<map>
<entry key="WB"> <!-- 配置本机构的区块链节点列表(如有DMZ,则为区块链前置)-->
<bean class="cn.webank.channel.handler.ChannelConnections">
<bean class="org.bcos.channel.handler.ChannelConnections">
<property name="connectionsStr">
<list>
<value>NodeA@127.0.0.1:30333</value><!-- 格式:节点名@IP地址:端口,节点名可以为任意名称 -->
Expand Down Expand Up @@ -79,9 +79,9 @@ SDK配置(Spring Bean):
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<!-- 区块链节点信息配置 -->
<bean id="proxyServer" class="cn.webank.channel.proxy.Server">
<bean id="proxyServer" class="org.bcos.channel.proxy.Server">
<property name="remoteConnections">
<bean class="cn.webank.channel.handler.ChannelConnections">
<bean class="org.bcos.channel.handler.ChannelConnections">
<property name="connectionsStr">
<list>
<value>NodeA@127.0.0.1:5051</value><!-- 格式:节点名@IP地址:端口,节点名可以为任意名称 -->
Expand All @@ -91,7 +91,7 @@ SDK配置(Spring Bean):
</property>
<property name="localConnections">
<bean class="cn.webank.channel.handler.ChannelConnections">
<bean class="org.bcos.channel.handler.ChannelConnections">
</bean>
</property>
<!-- 区块链前置监听端口配置,区块链SDK连接用 -->
Expand All @@ -109,7 +109,7 @@ AMOP支持在同一个区块链网络中有多个topic收发消息,topic支持

```
package cn.webank.channel.test;
package org.bcos.channel.test;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -119,7 +119,7 @@ AMOP支持在同一个区块链网络中有多个topic收发消息,topic支持
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import cn.webank.channel.client.Service;
import org.bcos.channel.client.Service;
public class Channel2Server {
static Logger logger = LoggerFactory.getLogger(Channel2Server.class);
Expand Down Expand Up @@ -153,17 +153,17 @@ AMOP支持在同一个区块链网络中有多个topic收发消息,topic支持

```
package cn.webank.channel.test;
package org.bcos.channel.test;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import cn.webank.channel.client.ChannelPushCallback;
import cn.webank.channel.dto.ChannelPush;
import cn.webank.channel.dto.ChannelResponse;
import org.bcos.channel.client.ChannelPushCallback;
import org.bcos.channel.dto.ChannelPush;
import org.bcos.channel.dto.ChannelResponse;
class PushCallback extends ChannelPushCallback {
static Logger logger = LoggerFactory.getLogger(PushCallback2.class);
Expand All @@ -189,7 +189,7 @@ AMOP支持在同一个区块链网络中有多个topic收发消息,topic支持
客户端案例:
```
package cn.webank.channel.test;
package org.bcos.channel.test;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
Expand All @@ -201,9 +201,9 @@ AMOP支持在同一个区块链网络中有多个topic收发消息,topic支持
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import cn.webank.channel.client.Service;
import cn.webank.channel.dto.ChannelRequest;
import cn.webank.channel.dto.ChannelResponse;
import org.bcos.channel.client.Service;
import org.bcos.channel.dto.ChannelRequest;
import org.bcos.channel.dto.ChannelResponse;
public class Channel2Client {
static Logger logger = LoggerFactory.getLogger(Channel2Client.class);
Expand Down Expand Up @@ -244,11 +244,11 @@ AMOP支持在同一个区块链网络中有多个topic收发消息,topic支持

启动amop服务端:
```
java -cp 'conf/:apps/*:lib/*' cn.webank.channel.test.Channel2Server [topic]
java -cp 'conf/:apps/*:lib/*' org.bcos.channel.test.Channel2Server [topic]
```
启动amop客户端:
```
java -cp 'conf/:apps/*:lib/*' cn.webank.channel.test.Channel2Client [topic] [消息内容] [消息条数]
java -cp 'conf/:apps/*:lib/*' org.bcos.channel.test.Channel2Client [topic] [消息内容] [消息条数]
```

## 错误码
Expand Down
6 changes: 3 additions & 3 deletions docs/features/机构证书准入/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ stateOrProvinceName_default =GuangDong
localityName = Locality Name (eg, city)
localityName_default = ShenZhen
organizationalUnitName = Organizational Unit Name (eg, section)
organizationalUnitName_default = webank
commonName = Organizational commonName (eg, webank)
commonName_default = webank
organizationalUnitName_default = fisco
commonName = Organizational commonName (eg, fisco)
commonName_default = fisco
commonName_max = 64
[ v3_req ]
# Extensions to add to a certificate request
Expand Down
4 changes: 2 additions & 2 deletions docs/features/群签名环签名/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ FISCO-BCOS实现了群签名和环签名链上验证功能,主要包括如下


- **场景1**: 机构内成员(C端用户)或机构内下属机构通过机构将群签名信息上链,其他人在链上验证签名时,仅可获知签名所属的群组,却无法获取签名者身份,保证成员的匿名性和签名的不可篡改性;(如拍卖、匿名存证、征信等场景)
- **场景2**:B端用户将生成的群签名通过AMOP发送给上链结构(如webank),上链机构将收集到的群签名信息统一上链(如竞标、对账等场景),其他人验证签名时,无法获取签名者身份,保证成员的匿名性,监管可通过可信第三方追踪签名者信息,保证签名的可追踪性。
- **场景2**:B端用户将生成的群签名通过AMOP发送给上链结构(如fisco),上链机构将收集到的群签名信息统一上链(如竞标、对账等场景),其他人验证签名时,无法获取签名者身份,保证成员的匿名性,监管可通过可信第三方追踪签名者信息,保证签名的可追踪性。

<br>

**(2)环签名场景**


- **场景1(匿名投票)**:机构内成员(C端用户)对投票信息进行环签名,并通过可信机构(如webank)将签名信息和投票结果写到链上,其他人可在链上验证签名时,仅可获取发布投票到链上的机构,却无法获取投票者身份信息
- **场景1(匿名投票)**:机构内成员(C端用户)对投票信息进行环签名,并通过可信机构(如fisco)将签名信息和投票结果写到链上,其他人可在链上验证签名时,仅可获取发布投票到链上的机构,却无法获取投票者身份信息

- **其他场景(如匿名存证、征信)**:场景与群签名匿名存证、征信场景类似,唯一的区别是任何人都无法追踪签名者身份

Expand Down

0 comments on commit 428e5f2

Please sign in to comment.