mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-25 18:45:35 +00:00
test: Ensure private key is not 0
This commit is contained in:
parent
50fa2d881d
commit
7a15fbf8f8
@ -83,7 +83,7 @@ describe("Waku Message: Browser & Node", function () {
|
|||||||
await fc.assert(
|
await fc.assert(
|
||||||
fc.asyncProperty(
|
fc.asyncProperty(
|
||||||
fc.uint8Array({ minLength: 1 }),
|
fc.uint8Array({ minLength: 1 }),
|
||||||
fc.uint8Array({ minLength: 32, maxLength: 32 }),
|
fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }),
|
||||||
async (payload, key) => {
|
async (payload, key) => {
|
||||||
const msg = await WakuMessage.fromBytes(payload, TestContentTopic, {
|
const msg = await WakuMessage.fromBytes(payload, TestContentTopic, {
|
||||||
symKey: key,
|
symKey: key,
|
||||||
@ -102,8 +102,8 @@ describe("Waku Message: Browser & Node", function () {
|
|||||||
await fc.assert(
|
await fc.assert(
|
||||||
fc.asyncProperty(
|
fc.asyncProperty(
|
||||||
fc.uint8Array({ minLength: 1 }),
|
fc.uint8Array({ minLength: 1 }),
|
||||||
fc.uint8Array({ minLength: 32, maxLength: 32 }),
|
fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }),
|
||||||
fc.uint8Array({ minLength: 32, maxLength: 32 }),
|
fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }),
|
||||||
async (payload, sigPrivKey, symKey) => {
|
async (payload, sigPrivKey, symKey) => {
|
||||||
const sigPubKey = getPublicKey(sigPrivKey);
|
const sigPubKey = getPublicKey(sigPrivKey);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user