createContext method
Creates an empty wallet context and returns its id; throws CryptoException on native failure, including backend refusal (id 0).
Implementation
@override
int createContext() {
final id = api.createContext().unwrapOrThrowCryptoError();
if (id == 0) {
throw CoreErrors.cryptoFailed(
'createContext',
reason: 'backend refused context creation',
);
}
return id;
}