add the hashed-next-key to the contact data, shown & stored

This commit is contained in:
2024-01-03 17:44:41 -07:00
parent 780be59c76
commit 934664b9c9
6 changed files with 39 additions and 18 deletions

View File

@@ -1,11 +1,12 @@
export interface Contact {
did: string;
name?: string;
nextPublicKeyHashBase64?: string; // base64-encoded SHA256 hash of next public key
publicKeyBase64?: string;
seesMe?: boolean;
registered?: boolean;
}
export const ContactSchema = {
contacts: "&did, name", // no need to key by publicKeyBase64, registered, seesMe
contacts: "&did, name", // no need to key by other things
};