Comments (10)
Can you post your code to see what you're doing wrong?
Judging by your error message, it could be a "bitcore" error, rather than a "bitcore-message" error.
from bitcore-message.
BUMP. Got the same error. Just followed the example instructions how to sign and verify a message. Mainnet this time though.
Ironically I came from bitcoinjs-lib where the documentation is also outdated.
from bitcore-message.
There is a known issue with uncompressed public keys that will produced the same error message: #12
from bitcore-message.
Took the key from here: https://brainwallet.org/#sign
5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss
from bitcore-message.
I can confirm that this bug does not happen with compressed keys. Wondering now how to workarround this bug.
from bitcore-message.
Adding support for uncompressed public keys in Signature.fromCompact
: https://github.com/bitpay/bitcore/blob/master/lib/crypto/signature.js#L35 should fix the issue.
from bitcore-message.
Maybe some expert in crypto-signing wants to take on this todo? Would be really useful!
from bitcore-message.
I've found that bitcoinjs-lib is much cleaner than bitcore's... Not sure why they don't have as many stars.
from bitcore-message.
Should be fixed in: bitpay/bitcore#1250
from bitcore-message.
Should be fixed here with: #19
from bitcore-message.
Related Issues (10)
- Support uncompress format
- Using with Bitcore HOT 4
- Make bitcore-lib a peer dependency
- broken image link at top of readme HOT 2
- Error: More than one instance of bitcore-lib found. Please make sure to require bitcore-lib and check that submodules do not also include their own bitcore-lib dependency. HOT 1
- [REQ] Add Segwit Sign/Verify support HOT 1
- breaks if you use this with bitcore-lib-cash HOT 1
- Message methods should accept more argument types HOT 4
- Encryption/Decryption? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcore-message.