Files
bybit-api/lib/utility.js
Stefan Aebischer ed28d14171 Initial commit
2019-09-14 16:02:11 +02:00

10 lines
184 B
JavaScript

const {createHmac} = require('crypto');
module.exports = {
signMessage(message, secret) {
return createHmac('sha256', secret)
.update(message)
.digest('hex');
}
}