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

Method DeviceKeysForUser

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

DeviceKeysForUser returns the device keys for the device IDs given. If the length of deviceIDs is 0, all devices are selected. If there are some missing keys, they are omitted from the returned slice. There is no ordering on the returned slice.

(ctx context.Context, userID string, deviceIDs []string, includeEmpty bool)

Source from the content-addressed store, hash-verified

54 // DeviceKeysForUser returns the device keys for the device IDs given. If the length of deviceIDs is 0, all devices are selected.
55 // If there are some missing keys, they are omitted from the returned slice. There is no ordering on the returned slice.
56 DeviceKeysForUser(ctx context.Context, userID string, deviceIDs []string, includeEmpty bool) ([]api.DeviceMessage, error)
57
58 // DeleteDeviceKeys removes the device keys for a given user/device, and any accompanying
59 // cross-signing signatures relating to that device.

Calls

no outgoing calls

Tested by 1