Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaks if you use this with bitcore-lib-cash #31

Open
brad1121 opened this issue Jun 22, 2018 · 1 comment
Open

breaks if you use this with bitcore-lib-cash #31

brad1121 opened this issue Jun 22, 2018 · 1 comment

Comments

@brad1121
Copy link

brad1121 commented Jun 22, 2018

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.

@biocrypto730
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants