Skip to main content
Version: 1.1.2

@sodot/sodot-react-native-sdkDocs


@sodot/sodot-react-native-sdk / Common

Class: Common

Constructors

new Common()

new Common(): Common

Returns

Common

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>