feat: add snjs package
This commit is contained in:
6
packages/snjs/lib/Services/KeyRecovery/Utils.ts
Normal file
6
packages/snjs/lib/Services/KeyRecovery/Utils.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { leftVersionGreaterThanOrEqualToRight } from '@standardnotes/common'
|
||||
import { SNRootKeyParams } from '@standardnotes/encryption'
|
||||
|
||||
export function serverKeyParamsAreSafe(serverParams: SNRootKeyParams, clientParams: SNRootKeyParams) {
|
||||
return leftVersionGreaterThanOrEqualToRight(serverParams.version, clientParams.version)
|
||||
}
|
||||
Reference in New Issue
Block a user