text: import handler from "./libs/handler-lib";
  
  export const main = handler(async (event) => {
      // Function based on encryption function by Filip Dimitrovski
      const request = event.body;
      const encryptedKey = require('crypto')
          .createHmac('sha512', process.env.COIN_PAYMENTS_SECRET_KEY)
          .update(request)
          .digest('hex');
      return {
          hmacSig: encryptedKey,
          request: request
      };
  });