diff --git a/src/components/PageComponents/Config/Security.tsx b/src/components/PageComponents/Config/Security.tsx index ec5e7752..1026a00d 100644 --- a/src/components/PageComponents/Config/Security.tsx +++ b/src/components/PageComponents/Config/Security.tsx @@ -126,7 +126,8 @@ export const Security = (): JSX.Element => { publicKey: publicKey, adminChannelEnabled: config.security?.adminChannelEnabled ?? false, isManaged: config.security?.isManaged ?? false, - bluetoothLoggingEnabled: config.security?.bluetoothLoggingEnabled ?? false, + bluetoothLoggingEnabled: + config.security?.bluetoothLoggingEnabled ?? false, debugLogApiEnabled: config.security?.debugLogApiEnabled ?? false, serialEnabled: config.security?.serialEnabled ?? false, }, diff --git a/src/core/utils/x25519.ts b/src/core/utils/x25519.ts index 8daa7a84..2729d80a 100644 --- a/src/core/utils/x25519.ts +++ b/src/core/utils/x25519.ts @@ -3,9 +3,9 @@ import { x25519 } from "@noble/curves/ed25519"; export function getX25519PrivateKey(): Uint8Array { const key = x25519.utils.randomPrivateKey(); - key[0] &= 248 - key[31] &= 127 - key[31] |= 64 + key[0] &= 248; + key[31] &= 127; + key[31] |= 64; return key; }