torusresearch / customauth-swift-sdk

Swift SDK that allows applications to directly interact with the Torus Network, similar to how Torus Wallet does.
BSD 3-Clause "New" or "Revised" License
10 stars 17 forks source link

Please Update demo according to New Release 7.0.0 #66

Open Shawon91sust opened 6 months ago

Shawon91sust commented 6 months ago

Looks like the demo is outdated and not compiling. Recently you have added major changes in CustomAuth. Now getTorusKey returns 'TorusKeyData' instead of dictionary. So existing implementation are breaking.

Also in version 6.0.2, getting threshold node unavailable error. This is the error throwing in SDK -

keyLookup: err: threshold nodes unavailable Error: JSON Decoding error keys not found in ["server_time_offset": "1709724938", "keys": [["pub_key_X": "18ec770b992ec56307020c5aec0d0d2c347a6b3ac3d6e66fa195a362266a2b55", "pub_key_Y": "ce0b5f03626a467053ab3e333783b3fd42bb4e040bcb67449f5377fde9520315", "key_index": "-4608e3e1d", "address": "0xa64EE1Db29fc42A4590Bf8Fd62Ec53bcc63831FD"], ["address": "0xa64EE1Db29fc42A4590Bf8Fd62Ec53bcc63831FD", "pub_key_Y": "ce0b5f03626a467053ab3e333783b3fd42bb4e040bcb67449f5377fde9520315", "pub_key_X": "18ec770b992ec56307020c5aec0d0d2c347a6b3ac3d6e66fa195a362266a2b55", "key_index": "3b9dc7e3"]]]

We need to fix the error ASAP since it is hampering our businesses