I'm trying to add a test case for my function which is extracting key from the local Keystore.
This is how I'm creating an instance of a local Keystore and setting a key inside it in my test environment:
let keystore = LocalKeystore::in_memory(); SyncCryptoStore::insert_unknown(&keystore, KeyTypeId::try_from("test").unwrap(), "test", public_key);
Here the problem I'm facing is, I'm unable to extract the stored key from the keystone. This is how I'm extracting it:
This function is returning an empty vector.