bitagora-booth
Advanced tools
Comparing version 1.0.39 to 1.0.40
@@ -36,3 +36,2 @@ const { | ||
if (!Boolean(data.id)) { | ||
/* | ||
const privkey_hex = Bs58.decode(data.privkey).toString('hex'); | ||
@@ -44,3 +43,2 @@ const privateKey = Secp256k1PrivateKey.fromHex(privkey_hex); | ||
const data.id = signer.getPublicKey().asHex(); | ||
*/ | ||
} | ||
@@ -162,5 +160,2 @@ if (!Boolean(data.poll) || !Boolean(data.id)) throw 'No data'; | ||
/// Temporary | ||
async function sendVoteToAPIs(bytes, apis) { | ||
@@ -193,4 +188,2 @@ try { | ||
var privkey_hex = Bs58.decode(ballot.privkey).toString('hex'); | ||
const signer = null; // temporary | ||
/* | ||
const privateKey = Secp256k1PrivateKey.fromHex(privkey_hex); | ||
@@ -201,3 +194,2 @@ const signerContext = createContext('secp256k1'); | ||
const pubkey_hex = signer.getPublicKey().asHex(); | ||
*/ | ||
if (pubkey_hex == newVote.id && validateVote(newVote, context.poll)) { | ||
@@ -204,0 +196,0 @@ getNodeList( function(APIs) { |
{ | ||
"name": "bitagora-booth", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "Bitagora booth", | ||
@@ -5,0 +5,0 @@ "main": "booth.js", |
22565
674