mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Update crypto/keybackup.go
Some checks failed
Some checks failed
Co-authored-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
parent
63832e89ce
commit
6f3884ccf2
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ func (mach *OlmMachine) GetAndVerifyLatestKeyBackupVersion(ctx context.Context,
|
|||
// from a verified device belonging to the same user."
|
||||
megolmBackupDerivedPublicKey := id.Ed25519(base64.RawStdEncoding.EncodeToString(megolmBackupKey.PublicKey().Bytes()))
|
||||
if megolmBackupKey != nil && versionInfo.AuthData.PublicKey == megolmBackupDerivedPublicKey {
|
||||
log.Debug().Msg("key backup is trusted based on public key")
|
||||
log.Debug().Msg("key backup is trusted based on derived public key")
|
||||
return versionInfo, nil
|
||||
} else {
|
||||
log.Debug().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue