UNPKG

factom-vote

Version:

JS implementation of the Factom voting specification

10 lines (8 loc) 297 B
const { generateVoteRegistrationChain } = require('./initialization-struct'); async function createVoteRegistrationChain(cli, nonce, ecAddress) { const chain = generateVoteRegistrationChain(nonce); return cli.add(chain, ecAddress); } module.exports = { createVoteRegistrationChain };