Skip to content

Commit

Permalink
Update crypto/keybackup.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sumner Evans <[email protected]>
  • Loading branch information
bradtgmurray and sumnerevans authored Feb 27, 2025
1 parent 63832e8 commit 6f3884c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/keybackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit 6f3884c

Please sign in to comment.