'use strict';

import { createHmac } from 'crypto';

export function signBlob (key, blob) {
  return 'sha1=' + createHmac('sha1', key).update(blob).digest('hex');
}

'use strict';

import { createHmac } from 'crypto';

export const signBlob = (key, blob) => {
  return 'sha1=' + createHmac('sha1', key).update(blob).digest('hex');
};

use arrow function