You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ecc.isValidPublic() return false on 2 public keys of account 1255gdpaftgs
Point.decodeFrom() report 'Invalid sequence tag'
To Reproduce
get the public keys of 1255gdpaftgs
validate these keys using ecc.isValidPublic()
# umu @ UMU-MBP in ~/github/meet-one/mainnet-snapshot on git:master x [21:45:27]
$ cleos -u https://mainnet.meet.one get account 1255gdpaftgs
created: 2018-11-08T01:25:13.500
permissions:
owner 1: 1 EOS5K6ag7t87u3F4jdkmt73wQtd9oprQFyJsp6vskrrwoQoPqcPdE7
active 1: 1 EOS5Kkxpsx71txnR8niEmZmcG6d6AeSQqYw1qfXYQBDkgh5v4tbGxH
memory:
quota: 5.345 KiB used: 3.365 KiB
net bandwidth:
staked: 0.1000 EOS (total stake delegated from account to self)
delegated: 0.0000 EOS (total staked delegated to account from others)
used: 0 bytes
available: 79.93 KiB
limit: 79.93 KiB
cpu bandwidth:
staked: 0.1000 EOS (total stake delegated from account to self)
delegated: 0.0000 EOS (total staked delegated to account from others)
used: 0 us
available: 12.63 ms
limit: 12.63 ms
producers: <not voted>
# umu @ UMU-MBP in ~/github/meet-one/mainnet-snapshot on git:master x [21:45:33]
$ node
> const ecc = require('eosjs-ecc')
undefined
> ecc.isValidPublic('EOS5K6ag7t87u3F4jdkmt73wQtd9oprQFyJsp6vskrrwoQoPqcPdE7')
false
> ecc.isValidPublic('EOS5Kkxpsx71txnR8niEmZmcG6d6AeSQqYw1qfXYQBDkgh5v4tbGxH')
false
ecc.isValidPublic('EOS5K6ag7t87u3F4jdkmt73wQtd9oprQFyJsp6vskrrwoQoPqcPdE7') return false #489
Version
eosjs 20.0.0-beta3
eosjs-ecc 4.0.4
Describe the bug
To Reproduce
get the public keys of 1255gdpaftgs
validate these keys using ecc.isValidPublic()
Expected behavior
true, but return false.
More
It seems like a bug of
ecurve 1.0.5
ecc.PublicKey('EOS5Kkxpsx71txnR8niEmZmcG6d6AeSQqYw1qfXYQBDkgh5v4tbGxH')
type is 128, isValidPublic() = false
ecc.PublicKey('EOS7enq7SL9AUhBYgkYMksj34LPKtAr7iu56KKrNTcUPTRqTp5VaN')
type is 3, isValidPublic() = true
I use C++ code to validate these keys, and the test passes.
The text was updated successfully, but these errors were encountered: