Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.81 KB

File metadata and controls

71 lines (45 loc) · 1.81 KB

cobo-mpc-callback-server-v2-java

Overview

This is a Java 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.

Requirements

  • Java 17
  • Maven 3.8+

Deployment Steps

1. Clone the Repository

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-java

2. Build

mvn compile clean
mvn compile

3. Configure Keys

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)

4. Start the Server

mvn exec:exec -Dexec.executable="java" -Dexec.args="-classpath %classpath com.cobo.callback.Application"

The server will start on port 11020 by default.

Testing

1. Health Check

curl http://127.0.0.1:11020/ping

2. Integration Testing

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.

Important Notes

Basic Implementation

This template implements only the basic server structure. All requests are allowed by default. Implement your own callback logic based on your business requirements.

Dependencies

The extra_info risk control parameter structure is defined in cobo-waas2-java-sdk Refer to the SDK documentation for detailed parameter definitions.