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

Method ExistingOneTimeKeys

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

ExistingOneTimeKeys returns a map of keyIDWithAlgorithm to key JSON for the given parameters. If no keys exist with this combination of user/device/key/algorithm 4-uple then it is omitted from the map. Returns an error when failing to communicate with the database.

(ctx context.Context, userID, deviceID string, keyIDsWithAlgorithms []string)

Source from the content-addressed store, hash-verified

27 // ExistingOneTimeKeys returns a map of keyIDWithAlgorithm to key JSON for the given parameters. If no keys exist with this combination
28 // of user/device/key/algorithm 4-uple then it is omitted from the map. Returns an error when failing to communicate with the database.
29 ExistingOneTimeKeys(ctx context.Context, userID, deviceID string, keyIDsWithAlgorithms []string) (map[string]json.RawMessage, error)
30
31 // StoreOneTimeKeys persists the given one-time keys.
32 StoreOneTimeKeys(ctx context.Context, keys api.OneTimeKeys) (*api.OneTimeKeysCount, error)

Callers 1

uploadOneTimeKeysMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected