hub-node-core icon indicating copy to clipboard operation
hub-node-core copied to clipboard

Cypto library deprecated

Open abdulwahidgul24085 opened this issue 6 years ago • 3 comments

When I run the project in VScode it provides the following errors and exits the application. About googling the information I have to make changes to the codebase with the changes in the crypto wallet. Can someone help with this issue? How can I run this? Or should I get a pull request and fix this issue with the proper working around the deprecated codebase?

image

abdulwahidgul24085 avatar Mar 27 '19 09:03 abdulwahidgul24085

@codeglobally @alundeen is there something we can do to help Abdul while the requisite pieces are added that allow folks to run/contribute to Hub development?

csuwildcat avatar Mar 27 '19 15:03 csuwildcat

Hi Abdul - These warnings are currently known but shouldn't be causing a crash.

Are you able to run the tests locally (npm run test)?

Please note that this repo is only a library and can't be run independently. Typically you would need to write your own server to accept requests (e.g. using Express or Koa or similar) and then pass the request buffer to the Hub.handleRequest() method of this library.

We're planning to release an example of this soon that can be cloned and run directly for an easier way to get started.

alundeen avatar Mar 27 '19 15:03 alundeen

(That said, if you'd be interested in submitting a PR to properly work around the deprecated calls, we'd be happy to review it. I believe the warnings are originating from the did-auth-jose library so the fix would probably need to be made in that repo).

alundeen avatar Mar 27 '19 15:03 alundeen