mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +00:00
17 lines
349 B
JavaScript
17 lines
349 B
JavaScript
/**
|
|
* Represents a Secret Key used in encryption over voice
|
|
*/
|
|
class SecretKey {
|
|
constructor(key) {
|
|
/**
|
|
* The key used for encryption
|
|
* @type {Uint8Array}
|
|
*/
|
|
this.key = new Uint8Array(new ArrayBuffer(key.length));
|
|
for (const index in key) {
|
|
this.key[index] = key[index];
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = SecretKey;
|