4

Is there a way to include an external library in Hyperledger Composer? I would like to use this library for currency computations. I saw in this post (which I think is old and there might be advancements on this since the response is 9 months old) that at the time it was not possible to include external libraries in Hyperledger

Artem Barger
  • 38,615
  • 9
  • 54
  • 80
Mohale
  • 720
  • 1
  • 6
  • 13

1 Answers1

0

If you are referring to business network Transaction Processor functions (which I think you are) then you cannot use require to include an external library. Other people have used things like Webpack to build a monolithic package of javascript to get around this limitation but I don't know the details on that or how practical it is from both an operational and supportable point of view.

david_k
  • 4,867
  • 2
  • 7
  • 15