mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-27 11:30:49 +00:00
Private Key 0..0
is not valid
This commit is contained in:
parent
1ca7215478
commit
1fd32639b9
@ -35,7 +35,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 publicKey = getPublicKey(key);
|
const publicKey = getPublicKey(key);
|
||||||
|
|
||||||
@ -56,8 +56,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, min: 1 }),
|
fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }),
|
||||||
fc.uint8Array({ minLength: 32, maxLength: 32, min: 1 }),
|
fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }),
|
||||||
async (payload, sigPrivKey, encPrivKey) => {
|
async (payload, sigPrivKey, encPrivKey) => {
|
||||||
const sigPubKey = getPublicKey(sigPrivKey);
|
const sigPubKey = getPublicKey(sigPrivKey);
|
||||||
const encPubKey = getPublicKey(encPrivKey);
|
const encPubKey = getPublicKey(encPrivKey);
|
||||||
|
@ -44,7 +44,7 @@ describe("Waku Message Version 1", 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 (message, privKey) => {
|
async (message, privKey) => {
|
||||||
const publicKey = getPublicKey(privKey);
|
const publicKey = getPublicKey(privKey);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user