-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(2631): Encrypt all message contents and reduce size of encryption (
#2749) * Encrypt all message contents and reduce size of encryption * Sign raw message contents * We don't need verifyMessage anymore
- Loading branch information
1 parent
13e231a
commit 87fdb68
Showing
9 changed files
with
92 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 11 additions & 9 deletions
20
packages/backend/src/nest/storage/channels/messages/messages.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import { SignedEnvelope } from '3rd-party/auth/packages/auth/dist' | ||
import { EncryptedPayload } from '../../../auth/services/crypto/types' | ||
|
||
import { FileMetadata } from '@quiet/types' | ||
import { EncryptedPayload, Signature } from '../../../auth/services/crypto/types' | ||
|
||
export interface EncryptedMessage { | ||
id: string | ||
export interface EncryptableMessageComponents { | ||
type: number | ||
message: EncryptedPayload | ||
createdAt: number | ||
channelId: string | ||
encSignature: SignedEnvelope | ||
message: string | ||
signature: string | ||
pubKey: string | ||
media?: FileMetadata | ||
} | ||
|
||
export interface EncryptedMessage { | ||
id: string | ||
contents: EncryptedPayload | ||
createdAt: number | ||
channelId: string | ||
encSignature: Signature | ||
} |
Oops, something went wrong.