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

Method PerformUploadKeys

keyserver/internal/internal.go:62–70  ·  view source on GitHub ↗
(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse)

Source from the content-addressed store, hash-verified

60}
61
62func (a *KeyInternalAPI) PerformUploadKeys(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse) {
63 res.KeyErrors = make(map[string]map[string]*api.KeyError)
64 if len(req.DeviceKeys) > 0 {
65 a.uploadLocalDeviceKeys(ctx, req, res)
66 }
67 if len(req.OneTimeKeys) > 0 {
68 a.uploadOneTimeKeys(ctx, req, res)
69 }
70}
71
72func (a *KeyInternalAPI) PerformClaimKeys(ctx context.Context, req *api.PerformClaimKeysRequest, res *api.PerformClaimKeysResponse) {
73 res.OneTimeKeys = make(map[string]map[string]map[string]json.RawMessage)

Callers

nothing calls this directly

Calls 2

uploadLocalDeviceKeysMethod · 0.95
uploadOneTimeKeysMethod · 0.95

Tested by

no test coverage detected