initialize
fun initialize(context: Context, deviceId: String, messageHandler: FireblocksMessageHandler, keyStorage: FireblocksKeyStorage, fireblocksOptions: FireblocksOptions): Fireblocks
Initializes the Fireblocks SDK instance
This method should be called at app startup time. Call this method before any Fireblocks SDK APIs.
Return
Fireblocks Instance per device id.
Parameters
context
application context.
device Id
Unique device id. Each device id will have a different Fireblocks SDK instance.
message Handler
The implementation of the FireblocksMessageHandler. Used to pass Fireblocks SDK messages from the to the BE server.
key Storage
The implementation of the FireblocksKeyStorage. Used to store and load the MPC secret key.
fireblocks Options
Throws
In the Fireblocks SDK was already initialized with the same deviceId.