Coder Social home page Coder Social logo

keycat's Introduction

Hi there ๐Ÿ‘‹

keycat's People

Contributors

dependabot[bot] avatar indegser avatar indegser-eosdaq avatar pebf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

keycat's Issues

Can't Login on Telos

When trying to login from different browsers, keep getting the following message;

"Could not find your account from blockchain"

Support for Telos Testnet

Hi! First of all thank you for this amazing library! We wanted to use it on the new qudo.io ecosystem, but for that we'd need to test using the Telos Testnet...

Could you please add it as a configuration?

signArbitraryData method produces invalid signature

Greetings,

And thanks for making this great authenticator.

It seems that when I am trying to use signArbitraryData method, the signature that is generated is invalid and belongs to a different pubkey (non-existent).

I' ll try to demonstrate the case with an example (using an account from the provided example), so that it would be easily reproduced:

const accountName = 'lebronjames2'
const pubKey = 'EOS8RdaZWEmwn87YewRS1qVaswh7DunG5mYX3GZCJFBJQcNqzc8pZ'
const wif = '5JFJ5irexsvkmLW892DN3LcZmUYoCHm4ES7XD4zGGL3Y4mvLVU2'
const sigMessage = 'test'

const keycat = new Keycat({
  blockchain: {
    name: 'eos-jungle',
    nodes: [
      'https://jungle2.cryptolions.io',
    ]
  }
})

keycat.account(accountName).signArbitraryData([sigMessage])
// Produces: SIG_K1_KXA61WTw51d1HfqBVARyEx6hrjLBN4SU3DQspJNSbZoeciR47ZyXK9uG2k45q6rUrDXv87zGrjh1YdWAMn9GB9qn6veAjX

Now when you try to verify the signature (using eosjs-ecc) somewhere else, it fails:

ecc.verify('SIG_K1_KXA61WTw51d1HfqBVARyEx6hrjLBN4SU3DQspJNSbZoeciR47ZyXK9uG2k45q6rUrDXv87zGrjh1YdWAMn9GB9qn6veAjX', sigMessage, pubKey)
// false

And if you try to recover the pubKey by the produced signature (using again eosjs-ecc), the pubkey that is produced is: EOS5NELdufi7CMU22qNUoCtFo2MZoj6RMuBpd93RopmwTtopDP4Hf

ecc.recover('SIG_K1_KXA61WTw51d1HfqBVARyEx6hrjLBN4SU3DQspJNSbZoeciR47ZyXK9uG2k45q6rUrDXv87zGrjh1YdWAMn9GB9qn6veAjX', sigMessage)
// EOS5NELdufi7CMU22qNUoCtFo2MZoj6RMuBpd93RopmwTtopDP4Hf

When signing the message with eosjs-ecc, it produces the following signature which is succesfully verified:

ecc.sign(sigMessage, wif)
// Produces: SIG_K1_KmGPWYActCqUBu2uT7iZHeRNzTtXAH3hmN9pgJcNmU5FAHvbX4wYjmfesxRArHVnqpT5FrLDjGDMaLyRtuVnZrUm1gybEC

Any ideas on what could be responsible for this?

Thanks again!

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.