Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitagora-booth

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitagora-booth - npm Package Compare versions

Comparing version 1.0.142 to 1.0.143

1

booth.js

@@ -249,2 +249,3 @@ /**

var newVote = new Vote(ballot, context.poll);
if (!newVote.ballot) throw 'Ballot is not valid';
console.log("New vote");

@@ -251,0 +252,0 @@ console.log(newVote);

23

lib/functions.js

@@ -258,8 +258,19 @@ /**

function getBallot(ballot, poll, voterPrivkeyHex) {
if (poll.open) {
return ballot;
} else {
console.log("Encrypting ballot");
console.log(encryptBallot(ballot, poll.certkey, voterPrivkeyHex));
return encryptBallot(ballot, poll.certkey, voterPrivkeyHex);
console.log("In get ballot");
console.log(ballot);
console.log(poll);
console.log("Poll is open? "+poll.open.toString());
try {
if (poll.open) {
console.log("Returning unencrypted ballot");
return ballot;
} else {
console.log("Encrypting ballot");
let encrypted = encryptBallot(ballot, poll.certkey, voterPrivkeyHex);
console.log(encrypted);
return encrypted;
}
} catch(e) {
console.log(e);
return false;
}

@@ -266,0 +277,0 @@ }

{
"name": "bitagora-booth",
"version": "1.0.142",
"version": "1.0.143",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "author": "Ignasi Ribó, 2018",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc