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

Method GetServerKey

internal/caching/cache_serverkeys.go:17–17  ·  view source on GitHub ↗

request -> timestamp is emulating gomatrixserverlib.FetchKeys: https://github.com/matrix-org/gomatrixserverlib/blob/f69539c86ea55d1e2cc76fd8e944e2d82d30397c/keyring.go#L95 The timestamp should be the timestamp of the event that is being verified. We will not return keys from the cache that are not v

(request gomatrixserverlib.PublicKeyLookupRequest, timestamp gomatrixserverlib.Timestamp)

Source from the content-addressed store, hash-verified

15 // verified. We will not return keys from the cache that are not valid
16 // at this timestamp.
17 GetServerKey(request gomatrixserverlib.PublicKeyLookupRequest, timestamp gomatrixserverlib.Timestamp) (response gomatrixserverlib.PublicKeyLookupResult, ok bool)
18
19 // request -> result is emulating gomatrixserverlib.StoreKeys:
20 // https://github.com/matrix-org/gomatrixserverlib/blob/f69539c86ea55d1e2cc76fd8e944e2d82d30397c/keyring.go#L112

Callers 2

FetchKeysMethod · 0.65
FetchKeysMethod · 0.65

Implementers 1

Cachesinternal/caching/caches.go

Calls

no outgoing calls

Tested by

no test coverage detected