save
Saves a credential to encrypted storage using upsert semantics.
If a credential with the same ID already exists, it is overwritten. The credential is serialized to JSON with the public key encoded as a hex string.
Parameters
credential
The credential to save
Throws
if the write operation fails