Skip to main content

Core initialization

Before any functions can be used, the Core must be initialized. Only one instance can be initialized; repeated calls will fail.

Function

initializeCore(): Promise<ONECore>

Parameters

Parameters are provided internally via the mobile application internal directory and native key storage implementation.

A mobile device initialized with either Secure Enclave for iOS or Keystore for Android can use SECURE_ELEMENT as its storageType when generating keys.

Return value

Initilization returns the One Core Binding.

Uninitializing

The core can be uninitialized. Deletion of data is optional. If data is not deleted and the core is reinitialized, it will be carried over and reused.

warning

Deleting data while uninitializing the core erases all wallet data permanently.

uninitialize(deleteData: boolean): Promise<void>