新手问答 eosjs 中的私钥写明太危险,怎么破

pengpengpemg · December 14, 2018 · Last by strahe replied at December 14, 2018 · 622 hits

如:

const Eos = require('eosjs');

const httpEndpoint = 'https://api.eosnewyork.io'; const chainId = 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906'; const key = '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3';

const config = { keyProvider: [key], httpEndpoint: httpEndpoint, chainId: chainId,

expireInSeconds: 60, broadcast: true, debug: false, sign: true, authorization: null },

};

const eos = Eos(config);

私钥肯定不能这样写吧,怎么破,求解!!!!

共收到 1 条回复

不公开就行了

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up