0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-11-18 07:40:53 +01:00
dendrite/common
Neil Alexander 2cb7c91c5d
Store our own keys in the keydb (#853)
* Store our own keys in the keydb

The DirectKeyFetcher makes the assumption that you can always reach the key/v2/server endpoint of any server, including our own. We previously haven't bothered to store our own keys in the keydb so this would mean we end up making key requests to ourselves.

In the libp2p world as an example, self-dialling is not possible, therefore this would render it impossible to get our own keys.

This commit adds our own keys into the keydb so that we don't create unnecessarily (and maybe impossible) requests.

* Use golang.org/x/crypto/ed25519 instead of crypto/ed25519 for pre-Go 1.13
2020-01-25 14:12:52 +00:00
..
basecomponent Store our own keys in the keydb (#853) 2020-01-25 14:12:52 +00:00
config patch dendrite microservices with bind config (#795) 2019-10-02 10:29:27 +01:00
http use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
keydb Store our own keys in the keydb (#853) 2020-01-25 14:12:52 +00:00
test Add AppService to test config and bind addrs (#800) 2019-10-04 17:08:00 +01:00
transactions Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker 2019-12-17 16:47:45 +00:00
consumers.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
eventcontent.go Replace event content types with ones in gomatrixserverlib (#785) 2019-08-16 01:45:11 +08:00
events.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
httpapi.go Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker 2019-12-17 16:47:45 +00:00
log.go Add filepath and function name to log output (#755) 2019-07-24 12:44:05 +08:00
partition_offset_table.go Fix pipeline, emoji and syntax (#713) 2019-06-19 14:05:03 +01:00
routing.go Encode URLs properly (#728) 2019-07-03 16:38:50 +01:00
sql.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
types.go Implement profile retrieval over federation (#726) 2019-08-07 00:02:12 +08:00