0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-13 14:43:17 +01:00

Fix old verify keys

This commit is contained in:
Neil Alexander 2020-09-29 14:00:12 +01:00
parent 738b829a23
commit b0d5d1cc9f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -151,7 +151,7 @@ func localKeys(cfg *config.FederationAPI, validUntil time.Time) (*gomatrixserver
for _, oldVerifyKey := range cfg.Matrix.OldVerifyKeys {
keys.OldVerifyKeys[oldVerifyKey.KeyID] = gomatrixserverlib.OldVerifyKey{
VerifyKey: gomatrixserverlib.VerifyKey{
Key: gomatrixserverlib.Base64Bytes(oldVerifyKey.PrivateKey),
Key: gomatrixserverlib.Base64Bytes(oldVerifyKey.PrivateKey.Public().(ed25519.PublicKey)),
},
ExpiredTS: oldVerifyKey.ExpiredAt,
}