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

Method UpdateNotaryKeys

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

Update the notary with the given server keys from the given server name.

(ctx context.Context, serverName gomatrixserverlib.ServerName, serverKeys gomatrixserverlib.ServerKeys)

Source from the content-addressed store, hash-verified

68
69 // Update the notary with the given server keys from the given server name.
70 UpdateNotaryKeys(ctx context.Context, serverName gomatrixserverlib.ServerName, serverKeys gomatrixserverlib.ServerKeys) error
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)

Callers 1

QueryServerKeysMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected