Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Sep 2, 2024
1 parent 9bea687 commit 354d045
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/PageComponents/Config/Security.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
6 changes: 3 additions & 3 deletions src/core/utils/x25519.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 354d045

Please sign in to comment.