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",