bitcore-message icon indicating copy to clipboard operation
bitcore-message copied to clipboard

breaks if you use this with bitcore-lib-cash

Open brad1121 opened this issue 7 years ago • 1 comments

If you use this with bitcore-lib-cash you will get issues when trying to sign.

In particular

 throw new errors.InvalidArgument(argumentName, message, docsPath);
      ^
Invalid Argument: First argument should be an instance of PrivateKey

This is because bitcore-message requires bitcore-lib not bitcore-lib-cash as a dependency. Thus they reference a different instance of PrivateKey

Simple fix is to change the bitcore-lib dependency to bitcore-lib-cash to proceed.

Just a pain if you run npm update/install, you will have to change this back each time.

brad1121 avatar Jun 22 '18 07:06 brad1121

Thanks, I was able to find this library from your comments https://www.npmjs.com/package/@bookmoons/bitcore-message-cash

biocrypto730 avatar Mar 26 '19 22:03 biocrypto730