Consensys / anonymous-zether

A private payment system for Ethereum-based blockchains, with no trusted setup.
Other
296 stars 78 forks source link

js SyntaxError #48

Closed nullcanon closed 3 years ago

nullcanon commented 3 years ago

I require "client.js" in my file like README.md

path = require('path'); const Client = require(path.join(__dirname, '../anonymous.js/src/client.js'));

but I get error

/home/hs_dev/solidity/anonymous-zether/packages/anonymous.js/src/utils/algebra.js:8
    static base = {
                ^

SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/tqxd/hs_dev/solidity/anonymous-zether/packages/anonymous.js/src/client.js:5:21)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

please help me

nullcanon commented 3 years ago

nodejs version to low ,close