diff --git a/lib/beacon-verification.ts b/lib/beacon-verification.ts index c987162..fdfdaa8 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",