Files
standardnotes-app-web/packages/snjs/lib/Services/KeyRecovery/Utils.ts
2022-07-06 14:04:30 +02:00

7 lines
333 B
TypeScript

import { leftVersionGreaterThanOrEqualToRight } from '@standardnotes/common'
import { SNRootKeyParams } from '@standardnotes/encryption'
export function serverKeyParamsAreSafe(serverParams: SNRootKeyParams, clientParams: SNRootKeyParams) {
return leftVersionGreaterThanOrEqualToRight(serverParams.version, clientParams.version)
}