Open daonb opened 1 year ago
A new function, addGetOrCreeatKey(tag) will be added to work as follows:
addGetOrCreeatKey(tag)
First it queries the keychain if found, it gets the public key by:
let publicKey = SecKeyCopyPublicKey(privateKey)
and returns an object with two string values, one for "public" and one for "private"
A new function,
addGetOrCreeatKey(tag)
will be added to work as follows:First it queries the keychain if found, it gets the public key by:
and returns an object with two string values, one for "public" and one for "private"