This is a Golang implementation of the TSS Node callback server. It provides a basic template for handling TSS Node requests and can be customized according to specific business requirements.
- Go 1.23.1
git clone https://github.com/CoboGlobal/cobo-mpc-callback-server-v2-template.git
cd cobo-mpc-callback-server-v2-template/cobo-mpc-callback-server-v2-golang
go build -trimpath -o build/bin/tss-node-callback-server cmd/main.go
Place the following key files in the project root directory:
- configs/tss-node-callback-pub.key (TSS Node's RSA public key)
- configs/callback-server-pri.pem (Callback server's RSA private key)
./build/bin/tss-node-callback-server
The server will start on port 11020 by default.
curl http://127.0.0.1:11020/ping
To test the complete workflow with TSS Node:
- Ensure your callback server is running
- Configure and start your TSS Node
- Send requests through TSS Node to the callback server
For detailed TSS Node setup, refer to the Callback Server Overview.
This template implements only the basic server structure. All requests are allowed by default. Implement your own callback logic based on your business requirements.
The extra_info
risk control parameter structure is defined in cobo-waas2-go-sdk
Refer to the SDK documentation for detailed parameter definitions.