Files
bybit-api/lib/utility.js

10 lines
185 B
JavaScript

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