| Interface Address |
/hub/regiterByIdPublicKey |
| Description |
Register by Public key. This function allows users define the ID by themselves. If successful, returns the user's ID in the Hub. |
| Interface request parameter |
| No. |
Parameter |
Type |
Required |
Description |
| 1 |
|
RegisterHubReq |
Y |
Wrapper class |
| RegisterHubReq |
| 1 |
id |
String |
N |
Self-defined Hub ID |
| 2 |
publicKey |
String |
Y |
Public key |
| 3 |
cryptoType |
String |
Y |
Encryption Algorithm: ECDSA |
| Interface response parameter |
| No. |
Parameter |
Type |
Description |
| 1 |
|
RegisterHubResult |
Wrapper class of the returned value |
| RegisterHubResult |
| 1 |
success |
Boolean |
Whether it is successful |
| 2 |
uid |
String |
ID in the Hub |
| 3 |
message |
String |
Result description |