GithubHelp home page GithubHelp logo

Comments (10)

 avatar commented on June 19, 2024

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.

FoundationAwesome avatar FoundationAwesome commented on June 19, 2024

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.

braydonf avatar braydonf commented on June 19, 2024

There is a known issue with uncompressed public keys that will produced the same error message: #12

from bitcore-message.

FoundationAwesome avatar FoundationAwesome commented on June 19, 2024

Took the key from here: https://brainwallet.org/#sign

5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss

from bitcore-message.

FoundationAwesome avatar FoundationAwesome commented on June 19, 2024

I can confirm that this bug does not happen with compressed keys. Wondering now how to workarround this bug.

from bitcore-message.

braydonf avatar braydonf commented on June 19, 2024

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.

FoundationAwesome avatar FoundationAwesome commented on June 19, 2024

todo-bitcore
Maybe some expert in crypto-signing wants to take on this todo? Would be really useful!

from bitcore-message.

 avatar commented on June 19, 2024

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.

braydonf avatar braydonf commented on June 19, 2024

Should be fixed in: bitpay/bitcore#1250

from bitcore-message.

braydonf avatar braydonf commented on June 19, 2024

Should be fixed here with: #19

from bitcore-message.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.