Expand description
The WASM sdk currently does not hold persistent SDK instances and instead re-createds SDK instances frequently. The unlock-state is lost, since the user-key is only held in the SDK. This file implements setting the user-key to WASM client-managed ephemeral state, so that SDK-re-creations have access to the user-key.
This is not required on UNIFFI since there SDK instances live as long as the client is unlocked. Eventually, the WASM sdk will also hold SDK instances like described above.
Structsยง
- Unable
ToGet ๐Error - Unable
ToSet ๐Error - Error indicating inability to set the user key into state
Constantsยง
Functionsยง
- copy_
user_ ๐key_ to_ client_ managed_ state - Sets the decrypted user key into the client-managed state, so that it survives re-creation of the SDK
- get_
user_ ๐key_ from_ client_ managed_ state