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

Method GetNotaryKeys

federationapi/storage/interface.go:73–73  ·  view source on GitHub ↗

Query the notary for the server keys for the given server. If `optKeyIDs` is not empty, multiple server keys may be returned (between 1 - len(optKeyIDs)) such that the combination of all server keys will include all the `optKeyIDs`.

(ctx context.Context, serverName gomatrixserverlib.ServerName, optKeyIDs []gomatrixserverlib.KeyID)

Source from the content-addressed store, hash-verified

71 // Query the notary for the server keys for the given server. If `optKeyIDs` is not empty, multiple server keys may be returned (between 1 - len(optKeyIDs))
72 // such that the combination of all server keys will include all the `optKeyIDs`.
73 GetNotaryKeys(ctx context.Context, serverName gomatrixserverlib.ServerName, optKeyIDs []gomatrixserverlib.KeyID) ([]gomatrixserverlib.ServerKeys, error)
74 // DeleteExpiredEDUs cleans up expired EDUs
75 DeleteExpiredEDUs(ctx context.Context) error
76}

Callers 2

QueryServerKeysMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected