Replace buffer.slice() with buffer.subarray()

This commit is contained in:
Fedor Indutny 2025-06-09 14:37:30 -07:00 committed by GitHub
commit b0634f9a9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 54 additions and 45 deletions

View file

@ -1923,7 +1923,7 @@ export class SignalProtocolStore extends EventEmitter {
}
const hash = sha256(pubKey);
const fingerprint = hash.slice(0, 4);
const fingerprint = hash.subarray(0, 4);
return Bytes.toBase64(fingerprint);
}