# tianyicertservice **Repository Path**: lisgroup/tianyicertservice ## Basic Information - **Project Name**: tianyicertservice - **Description**: 天翼翼证-区块链验签服务 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-28 - **Last Updated**: 2021-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 天翼翼证-区块链 验签服务 ### 一、启动方法 1. run ```shell script go run main.go ``` 2. build ```shell script go build main.go ./main ``` ### 二、 客户端获取sign - 请求地址设定为 http://127.0.0.1:9898/ - 请求参数列表 参数名称 | 描述 ---|--- body | 接口参数 nonce | 签名内容里面的随机数 timeStamp | 签名内容里面的时间戳 apiSecret | 秘钥 完整请求示例: ``` http://172.16.4.3:9898/sign?body={"Data":"test","Remark":"test"}&nonce=100&timeStamp=1608626661&apiSecret=482e4610af93b60a113a8ecc61a500eaf054ee6df030ac2ece669acbe58ec28e ``` 响应JSON示例: ```json { "code": 0, "data": { "sign": "40677972351786153192903865501230545775316569974084416717902566734041634855574+24262690419852203592204540437043224196359361711282558324821312146479811246097" }, "reason": "success" } ```