MCPcopy Create free account
hub / github.com/daodst/chat / StoreLocalDeviceKeys

Method StoreLocalDeviceKeys

keyserver/storage/interface.go:44–44  ·  view source on GitHub ↗

StoreLocalDeviceKeys persists the given keys. Keys with the same user ID and device ID will be replaced. An empty KeyJSON removes the key for this (user, device). The `StreamID` for each message is set on successful insertion. In the event the key already exists, the existing StreamID is set. Return

(ctx context.Context, keys []api.DeviceMessage)

Source from the content-addressed store, hash-verified

42 // The `StreamID` for each message is set on successful insertion. In the event the key already exists, the existing StreamID is set.
43 // Returns an error if there was a problem storing the keys.
44 StoreLocalDeviceKeys(ctx context.Context, keys []api.DeviceMessage) error
45
46 // StoreRemoteDeviceKeys persists the given keys. Keys with the same user ID and device ID will be replaced. An empty KeyJSON removes the key
47 // for this (user, device). Does not modify the stream ID for keys. User IDs in `clearUserIDs` will have all their device keys deleted prior

Callers 2

uploadLocalDeviceKeysMethod · 0.65

Calls

no outgoing calls

Tested by 1