sender-key: Properly digest new uint8array format keys. THANKS @w3nder!!
This commit is contained in:
@@ -12,6 +12,8 @@ export class SenderChainKey {
|
||||
this.iteration = iteration
|
||||
if (chainKey instanceof Buffer) {
|
||||
this.chainKey = chainKey
|
||||
} else if (chainKey instanceof Uint8Array) {
|
||||
this.chainKey = Buffer.from(chainKey)
|
||||
} else {
|
||||
this.chainKey = Buffer.from(chainKey || [])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user