Node.js - TypeError回调不是函数

时间:2017-10-03 15:35:34

标签: node.js

我希望你的帮助

stamp.js

var CoinStack = require('coinstack-sdk-js')
const crypto = require('crypto');


var client = new CoinStack('c7dbfacbdf1510889b38c01b8440b1', 
'10e88e9904f29c98356fd2d12b26de');


var privateKeyWIF = CoinStack.ECKey.createKey(); //개인키 생성
console.log('개인키 : '+ privateKeyWIF)


const message = "Hello, world";
var data = new Array();
data = Buffer.byteLength(message, 'utf8')
const hash = crypto.createHmac('sha256', data.toString()).digest('hex');
console.log("hash : ", hash)
console.log('')


var stampId = client.stampDocument(privateKeyWIF, hash);
console.log(stampId)
console.log('')[enter image description here][1]

Error 1

Error 2

我不知道该怎么做,

我想要你的想法

0 个答案:

没有答案