indegser / keycat Goto Github PK
View Code? Open in Web Editor NEWLicense: Mozilla Public License 2.0
License: Mozilla Public License 2.0
Keeps complaining my private key is wrong
When trying to login from different browsers, keep getting the following message;
"Could not find your account from blockchain"
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?
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!
Hey~
I visited in keycat.co domain.
But, There is alive only main page.
You should look at it.
Have a nice day~!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.