refactor(types): Strengthen Type Safety in Signal Handling & Core Utilities (#1764)
* refactor(types): Strengthen Type Safety in Signal Handling & Core Utilities * chore: revert typescript and move types to libsignal * chore: update libsignal dependency resolution and checksum * fix: a minor regression * chore: update libsignal resolution and checksum
This commit is contained in:
committed by
GitHub
parent
e305d4848e
commit
421ca2eb92
@@ -1,4 +1,3 @@
|
||||
/* @ts-ignore */
|
||||
import { calculateMAC } from 'libsignal/src/crypto'
|
||||
import { SenderMessageKey } from './sender-message-key'
|
||||
|
||||
@@ -8,7 +7,7 @@ export class SenderChainKey {
|
||||
private readonly iteration: number
|
||||
private readonly chainKey: Buffer
|
||||
|
||||
constructor(iteration: number, chainKey: any) {
|
||||
constructor(iteration: number, chainKey: Uint8Array | Buffer) {
|
||||
this.iteration = iteration
|
||||
if (Buffer.isBuffer(chainKey)) {
|
||||
// backported from @MartinSchere's PR
|
||||
|
||||
Reference in New Issue
Block a user