11.4.4.2 Register Hub User by Public Key


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
© 2019-2021 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2022-05-12 15:53:17

results matching ""

    No results matching ""

    results matching ""

      No results matching ""