refactor: migrate WASignalGroup to TypeScript and remove deprecated files (#1320)

* refactor: migrate WASignalGroup to TypeScript and remove deprecated files

* chore: remove WASignalGroup JavaScript files from package.json

* refactor: update SenderKeyStore and SenderKeyStateStructure interfaces to export and add deserialize method. Fix types

* chore: lint issue

* refactor: improve constructor type checking and getSeed method in SenderChainKey

* refactor: update key handling to use Buffer for improved consistency

* signal: consistent naming and dir structure + add some missing types

* fix: lint issues

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
João Lucas de Oliveira Lopes
2025-06-21 12:02:15 -03:00
committed by GitHub
parent f404147736
commit 482db6edc5
33 changed files with 884 additions and 2562 deletions

View File

@@ -0,0 +1,9 @@
export class CiphertextMessage {
readonly UNSUPPORTED_VERSION: number = 1
readonly CURRENT_VERSION: number = 3
readonly WHISPER_TYPE: number = 2
readonly PREKEY_TYPE: number = 3
readonly SENDERKEY_TYPE: number = 4
readonly SENDERKEY_DISTRIBUTION_TYPE: number = 5
readonly ENCRYPTED_MESSAGE_OVERHEAD: number = 53
}