Function name |
registerHub(String id, String publicKey, CryptoType cryptoType) |
Description |
Register by Public key. This function allows users define the ID by themselves. If successful, returns the user's ID in the Hub. |
Request Parameters |
No. |
Parameter |
Type |
Required |
Description |
1 |
id |
String |
N |
Self-defined hub ID |
2 |
publicKey |
String |
Y |
Public key |
3 |
cryptoType |
String |
Y |
ECDSA |
Response parameter |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
RegisterHubResult |
Y |
Registration result |
RegisterHubResult |
No. |
Parameter |
Type |
Description |
1 |
success |
Boolean |
Return true if success, return false if failure |
2 |
uid |
String |
ID in the Hub |
3 |
message |
String |
Result description |