js-waku/packages/tests/src/constants.ts

37 lines
565 B
TypeScript
Raw Normal View History

2021-05-10 15:53:05 +10:00
/**
* Some constants for test purposes.
*
* @hidden
* @module
*/
2022-02-16 14:08:48 +11:00
export const NOISE_KEY_1 = new Uint8Array(
((): number[] => {
const b = [];
for (let i = 0; i < 32; i++) {
b.push(1);
}
return b;
})()
);
export const NOISE_KEY_2 = new Uint8Array(
((): number[] => {
const b = [];
for (let i = 0; i < 32; i++) {
b.push(2);
}
return b;
})()
);
export const NOISE_KEY_3 = new Uint8Array(
((): number[] => {
const b = [];
for (let i = 0; i < 32; i++) {
b.push(3);
}
return b;
})()
);