Credentials in the secret store of the device. A credential is JSON, UTF-8 and base64url, cut into pieces that each
fit one value. The pieces are kept in one of two sets of keys, <namespace>.cred.<id>.<n> and
<namespace>.cred.<id>.b<n>. The record <namespace>.cred.<id>.n holds their number, followed by b when the
second set is the one in use, and the list of ids is <namespace>.creds.index.
Pieces are never written over a credential that is stored: they go to the set that the record does not name, and
writing the record is what makes them the credential. A credential with a new id exists once its id is in the index,
which is written last. A write that fails or is cut short therefore leaves the credential as it was.
Credentials in the secret store of the device. A credential is JSON, UTF-8 and base64url, cut into pieces that each fit one value. The pieces are kept in one of two sets of keys,
<namespace>.cred.<id>.<n>and<namespace>.cred.<id>.b<n>. The record<namespace>.cred.<id>.nholds their number, followed bybwhen the second set is the one in use, and the list of ids is<namespace>.creds.index.Pieces are never written over a credential that is stored: they go to the set that the record does not name, and writing the record is what makes them the credential. A credential with a new id exists once its id is in the index, which is written last. A write that fails or is cut short therefore leaves the credential as it was.