message: attempt to use invoices library but it relies on crypto from nodejs which is not available
diff: import * as lightningPayReq from "bolt11"
  +// const {parsePaymentRequest} = require('invoices');
  // helper for bolt11
  +// export const getHashFromInvoice = (request) => {
  +// return parsePaymentRequest({request}).id
  +// }
  +
  +// export const getDescription = (request): number | undefined => {
  +// return parsePaymentRequest({request}).description
  +// }
  +
  +// export const getAmount = (request): number | undefined => {
  +// return parsePaymentRequest({request}).tokens
  +// }
  +
  export const getDescription = (decoded) =>
  decoded.tags.find(value => value.tagName === "description")?.data
  