@sodot/sodot-react-native-sdk • Docs
@sodot/sodot-react-native-sdk / Common
Class: Common
Constructors
new Common()
new Common():
Common
Returns
Methods
importMultiplePrivateKeyShares()
static
importMultiplePrivateKeyShares(rawBackup
):Promise
<void
>
Import all private key shares to be saved into the secure storage.
This function is used to restore all private key shares from a backup (created by retrieveAllPrivateKeySharesForBackup
).
After this, all the private key shares will be stored in the secure storage of the device, and can be used with the other functions.
Parameters
• rawBackup: string
Returns
Promise
<void
>
retrieveAllPrivateKeySharesForBackup()
static
retrieveAllPrivateKeySharesForBackup():Promise
<string
>
Retrieve all private key shares saved on the device. The returned value is a hex string that encodes all the key materials. Notice: This value must be kept secret!
Returns
Promise
<string
>