From ea66db93b8013ce3ba48c576b04badb9b5927f7d Mon Sep 17 00:00:00 2001 From: PM <3749956+CluEleSsUK@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:22:35 +0100 Subject: [PATCH] bumped version for release (#75) * bumped version for release * added some additional error logging for invalid beacons --- lib/beacon-verification.ts | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/beacon-verification.ts b/lib/beacon-verification.ts index c987162..d846f53 100644 --- a/lib/beacon-verification.ts +++ b/lib/beacon-verification.ts @@ -21,10 +21,12 @@ async function verifyBeacon(chainInfo: ChainInfo, beacon: RandomnessBeacon, expe const publicKey = chainInfo.public_key if (beacon.round !== expectedRound) { + console.error('round was not the expected round') return false } if (!await randomnessIsValid(beacon)) { + console.error('randomness did not match the signature') return false } diff --git a/package-lock.json b/package-lock.json index ed14f2b..2d36ea3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "drand-client", - "version": "1.2.1", + "version": "1.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "drand-client", - "version": "1.2.1", + "version": "1.2.2", "license": "(Apache-2.0 OR MIT)", "dependencies": { "@babel/traverse": "^7.23.2", diff --git a/package.json b/package.json index 4b44213..cef08b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "drand-client", - "version": "1.2.1", + "version": "1.2.2", "description": "A client to the drand randomness beacon network.", "main": "index.js", "types": "index.d.ts",