Closed VadimSos closed 3 years ago
I got this error as well. Have no clue how to fix it.
Are you trying to run it on a device or the simulator? Simulator does not have the secure enclave.
Thank you. It works after I configured an App Group and run it on my device.
Following the tutorial in https://github.com/EOSIO/eosio-swift-vault for EosioSwiftVault I wrote the following function:
import EosioSwiftVault
func getKeyPair() let vault = EosioVault(accessGroup: Bundle.main.bundleIdentifier!) do{ let key = try vault.newVaultKey(secureEnclave: true) } catch { print(error) }
It prints out the following: Error was encountered in key management.