0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 01:13:43 +01:00
dendrite/common/keydb/postgres
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
..
keydb.go Store our own keys in the keydb (#853) 2020-01-25 14:12:52 +00:00
server_key_table.go Implement storage interfaces (#841) 2020-01-03 14:07:05 +00:00