Git Product home page Git Product logo

group-signature-server's Introduction

group-signature-server

PRs Welcome GitHub issues All releases

群/环签名服务端基于群/环签名库,为群/环签名客户端提供签名RPC服务。服务端可部署在机构内,支持BBS04群签名方案和LSAG环签名方案,为机构成员提供群签名和环签名服务。

群/环签名客户端和服务端是专门提供给社区用户的FISCO BCOS隐私保护模块关于群/环签名的开发示例,架构如下:

代码结构

目录
说明
easylog 打印服务端日志
httpserver 群/环签名RPC服务
database 存储签名参数以及群成员信息

服务部署

安装依赖

  • Ubuntu

推荐Ubuntu 16.04以上版本,16.04以下的版本没有经过测试。

$ sudo apt-get install -y flex patch bison libgmp-dev byacc libmicrohttpd-dev
  • CentOS

推荐使用CentOS7以上版本。

$ sudo yum install -y flex patch bison gmp-static byacc
  • macOS

推荐xcode10以上版本。macOS依赖包安装依赖于Homebrew

$ brew install flex bison gmp byacc

源码编译

# 从拉取git代码
git clone https://github.com/FISCO-BCOS/group-signature-server.git
# 创建目录
cd group-signature-server && mkdir -p build && cd build
# Centos请使用cmake3
cmake .. 
# 编译,可使用-j4加速
make
# 编译后,会在build目录下生成RPC服务程序server

启动服务

# 假设当前在group-signature-server/build目录下
./server 
# 若要把server放到后台执行,则可借助nohup工具,命令示例:
nohup ./server &

服务帮助

./server -h
# 输出如下
group sig and ring sig RPC:
  -p [ --port ] arg            listen port of group sig and ring sig RPC
  -n [ --http_thread_num ] arg thread num of http server used to deal with 
                               requests
  -l [ --log_path ] arg        path of log configuration
  -s [ --ssl_cert ] arg        path of ssl certification
  -k [ --ssl_key ] arg         key to access ssl certification
  -h [ --help ]                help of group sig and ring sig rpc
  • 命令示例

./server -p 8005 -n 10 -l ../log.conf

  • 参数含义
参数
说明
默认参数
 
-p rpc服务的监听端口 8005
-n rpc服务启动的线程数目 10
-l 日志配置文件路径 ../log.conf
-s 证书路径(针对https)
-k 私钥路径(针对https)
-h 显示帮助信息

配置日志

group-signature-server目录下存着一个日志配置文件示例log.conf,用户使用时需要做如下配置:

  • 根据需求,修改日志打印选项,生产环境中,一般WARNING/ERROR/FATAL打开,其他选项关闭;
  • 测试环境中,可打开DEBUG和TRACE。
  • 配置文件生效需要重启服务

接口说明

详见接口文档

贡献代码

  • 我们欢迎并非常感谢您的贡献,请参阅代码贡献流程
  • 如项目对您有帮助,欢迎star支持!

加入社区

FISCO BCOS开源社区是国内活跃的开源社区,社区长期为机构和个人开发者提供各类支持与帮助。已有来自各行业的数千名技术爱好者在研究和使用FISCO BCOS。如您对FISCO BCOS开源技术及应用感兴趣,欢迎加入社区获得更多支持与帮助。

License

license

group-signature-server的开源协议为GNU GENERAL PUBLIC LICENSE. 详情参考LICENSE

group-signature-server's People

Contributors

cyjseagull avatar shareong avatar fisco-dev avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.