Node.js – TypeErrorcallback不是一个函数

我希望你的帮助

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] 

错误1

错误2

我不知道该怎么办,

我想要你的想法