create account

Offering 20 STEEM Reward to Fix a Bug in Steem-JS by drakos

View this thread on: hive.blogpeakd.comecency.com
· @drakos · (edited)
$14.06
Offering 20 STEEM Reward to Fix a Bug in Steem-JS
## Developers, developers, developers, developers, developers!

https://www.youtube.com/watch?v=V-FkalybggA

If anyone understood the value of developers, it's good old Steve Ballmer. While Steemit developers are busy with various projects, many bugs remain unaddressed (less priority?).

I was happily writing a new tool for you, my fellow witnesses, in steem-js, when I stumbled upon a bug that halted my project. I was disappointed after spending hours writing the tool, I couldn't go any further and share it with you.

<center>![witnesstool.png](https://steemitimages.com/DQmUHbZBom5R9LrSWDDUpCCKVvQmuRqVJEJrx5FjrXyvhUy/witnesstool.png)</center>
<center>https://cdn.pixabay.com/photo/2013/07/12/15/01/fly-swatter-149265_640.png</center>

When trying to broadcast the signing key to disable the witness, I get this:
`Error: transaction.operations = witness_update,[object Object] cause: witness_update.block_signing_key = STM1111111111111111111111111111111114T1Anm cause: Invalid sequence tag`

The bug has already been submitted last month https://github.com/steemit/steem-js/issues/267, without any fix yet. The same bug also affects golos-js https://github.com/GolosChain/golos-js/issues/12.

<center><h3>I'm offering a 20 STEEM for anyone who can fix it within a week.
So get crackin'.</h3></center>

Maybe add a condition in the code to skip the encryption checks on that particular key.

Let us repeat Steve Ballmer's mantra to give you some inspiration, may his legendary sweating force guide you on this adventure.
<center><h4>Developers, developers, developers, developers, developers!</h4></center>

***
<center>![Logo 2 Steemit-200x200.png](https://steemitimages.com/DQmYYCLPqwcEXBj1XXxeYJty6xyRXB6TQxMzfaaxBeoXiBk/Logo%202%20Steemit-200x200.png)
Check out [Steemian.Info](https://steemian.info), the concise information resource about the Steem blockchain</center>
***
<center>https://steemitimages.com/DQmVbnfDz8PuMrhwVRYQ9iEwVyfTnwFL1v8eVXcZrhBzD9s/painter-161318_640-128x119.png
Are you a visual artist? Join the Steem Artists Guild.
We are on Discord at https://discord.gg/CY9u65g
***
<sub>Proud member and delegator of the @minnowsupport project.
Join us on https://discord.gg/GpHEEhV</sub>
[![MSP](https://steemitimages.com/DQmcbTzxUwUFKPSn59dbVWMo19SBG391na3Z1TxR2KD4Mi3/MSP%20by%20zeartul-200x172.png)](https://steemit.com/@minnowsupport)[![PAL](https://steemitimages.com/DQmWeczB7vBt4jTVGxwVLc85RrZuJds7usar4bsc15APBrM/PAL-200x260.png)](https://discord.gg/GpHEEhV )</center>
***
<center>[![Follow](https://steemitimages.com/DQmZkyG7SyJiSNN6qkxJ9n9darqn51RjWpDnJCKYKEhx3D4/BlueArt.gif)](https://steemit.com/@drakos)
***
#### Available & Reliable. I am your Witness. I want to represent You.
##### &#x1F5F3; If you like what I do, consider voting for me &#x1F5F3;
[![Vote](https://steemitimages.com/DQmfRx7jNSrFAnRZPrKRHLDxR22gRFYTBnKr2uLNdVty3MG/drakos-witness-thanks.gif)](https://steemit.com/~witnesses)
###### If you never voted before, I wrote a detailed guide about [Voting for Witnesses](https://steemit.com/witness-category/@drakos/tips-and-guidelines-voting-for-witnesses).
<sub>Go to https://steemit.com/~witnesses. My name is listed in the Top 50. Click the upvote symbol.</sub>
###### Alternatively,
<sub>with cli_wallet : **`vote_for_witness "YOURACCOUNT" "drakos" true true`**
with steem-python: **`steempy approvewitness drakos --account YOURACCOUNT`**</sub>
</center>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authordrakos
permlinkoffering-20-steem-reward-to-fix-a-bug-in-steem-js
categorywitness-category
json_metadata{"tags":["witness-category","steem","steemjs","javascript","programming"],"users":["minnowsupport"],"image":["https://img.youtube.com/vi/V-FkalybggA/0.jpg","https://steemitimages.com/DQmUHbZBom5R9LrSWDDUpCCKVvQmuRqVJEJrx5FjrXyvhUy/witnesstool.png","https://cdn.pixabay.com/photo/2013/07/12/15/01/fly-swatter-149265_640.png","https://steemitimages.com/DQmYYCLPqwcEXBj1XXxeYJty6xyRXB6TQxMzfaaxBeoXiBk/Logo%202%20Steemit-200x200.png","https://steemitimages.com/DQmVbnfDz8PuMrhwVRYQ9iEwVyfTnwFL1v8eVXcZrhBzD9s/painter-161318_640-128x119.png","https://steemitimages.com/DQmcbTzxUwUFKPSn59dbVWMo19SBG391na3Z1TxR2KD4Mi3/MSP%20by%20zeartul-200x172.png","https://steemitimages.com/DQmWeczB7vBt4jTVGxwVLc85RrZuJds7usar4bsc15APBrM/PAL-200x260.png","https://steemitimages.com/DQmZkyG7SyJiSNN6qkxJ9n9darqn51RjWpDnJCKYKEhx3D4/BlueArt.gif","https://steemitimages.com/DQmfRx7jNSrFAnRZPrKRHLDxR22gRFYTBnKr2uLNdVty3MG/drakos-witness-thanks.gif"],"links":["https://www.youtube.com/watch?v=V-FkalybggA","https://github.com/steemit/steem-js/issues/267","https://github.com/GolosChain/golos-js/issues/12","https://steemian.info","https://discord.gg/CY9u65g","https://discord.gg/GpHEEhV","https://steemit.com/@minnowsupport","https://steemit.com/@drakos","https://steemit.com/~witnesses","https://steemit.com/witness-category/@drakos/tips-and-guidelines-voting-for-witnesses"],"app":"steemit/0.1","format":"markdown"}
created2017-11-24 20:10:21
last_update2017-11-24 20:20:27
depth0
children11
last_payout2017-12-01 20:10:21
cashout_time1969-12-31 23:59:59
total_payout_value11.979 HBD
curator_payout_value2.079 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,406
author_reputation112,280,226,665,329
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries
0.
accountgo-steem
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,423,288
net_rshares6,332,324,340,130
author_curate_reward""
vote details (55)
@good-karma ·
Well not sure about bug reported, but I always do this and it works!

<code>
steem.api.getWitnessByAccount("drakos", function(err, res){
console.log(res);
if (res) {
steem.broadcast.witnessUpdate("5ACTIVEPRIVATEKEY", "drakos", "https://steemit.com/@drakos", "STM1111111111111111111111111111111114T1Anm", res.props, "0.000 STEEM", function(err, result) {
  console.log('steem_witness_updated');	
 });
}
});
</code>
properties (22)
authorgood-karma
permlinkre-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171124t201957763z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2017-11-24 20:19:57
last_update2017-11-24 20:19:57
depth1
children1
last_payout2017-12-01 20:19:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length413
author_reputation656,223,454,697,932
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,423,864
net_rshares0
@drakos ·
No luck. Tried your exact code on the latest steem-js v0.6.7 with added `console.log(err, result);` for testing,  still the same error 😞
properties (22)
authordrakos
permlinkre-good-karma-re-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171124t210546584z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2017-11-24 21:06:51
last_update2017-11-24 21:06:51
depth2
children0
last_payout2017-12-01 21:06:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length136
author_reputation112,280,226,665,329
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,426,690
net_rshares0
@simgirl ·
I have not been able to vote for a witness since I started Steemit :(
properties (22)
authorsimgirl
permlinkre-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171124t201302792z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2017-11-24 20:13:06
last_update2017-11-24 20:13:06
depth1
children2
last_payout2017-12-01 20:13:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation25,946,610,333,190
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,423,465
net_rshares0
@drakos ·
It's really easy, check this guide https://steemian.info/voting
properties (22)
authordrakos
permlinkre-simgirl-re-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171124t201440758z
categorywitness-category
json_metadata{"tags":["witness-category"],"links":["https://steemian.info/voting"],"app":"steemit/0.1"}
created2017-11-24 20:15:45
last_update2017-11-24 20:15:45
depth2
children0
last_payout2017-12-01 20:15:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length63
author_reputation112,280,226,665,329
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,423,633
net_rshares0
@netuoso ·
$3.86
https://v2.steemconnect.com/sign/account-witness-vote?witness=netuoso&approve=1

Try the link above and see how it works for you. It does require your Active key to vote for witnesses
πŸ‘  
properties (23)
authornetuoso
permlinkre-simgirl-re-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171125t032551952z
categorywitness-category
json_metadata{"tags":["witness-category"],"links":["https://v2.steemconnect.com/sign/account-witness-vote?witness=netuoso&amp;approve=1"],"app":"steemit/0.1"}
created2017-11-25 03:25:51
last_update2017-11-25 03:25:51
depth2
children0
last_payout2017-12-02 03:25:51
cashout_time1969-12-31 23:59:59
total_payout_value2.857 HBD
curator_payout_value1.001 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length183
author_reputation151,901,967,807,285
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries
0.
accountsteemliberator
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,447,214
net_rshares1,720,544,100,482
author_curate_reward""
vote details (1)
@smitop · (edited)
Appears to be a function forcing all signatures to be valid.
properties (22)
authorsmitop
permlinkre-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171124t19423762z
categorywitness-category
json_metadata{"app":"chainbb/0.4","namespace":false,"format":"markdown+html","tags":["witness"]}
created2017-11-25 00:04:27
last_update2017-11-25 00:30:54
depth1
children1
last_payout2017-12-02 00:04:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length60
author_reputation1,622,694,571,233
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries
0.
accountchainbb
weight1,400
1.
accountfollowbtcnews
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,436,317
net_rshares0
@drakos · (edited)
Yup, elliptic curve library. From what I understood, it checks the validity of the key, and since STM1111111111111111111111111111111114T1Anm is not a valid key, it spits out the error. I've checked steem and steem-python for the "Invalid sequence tag" string and there's no sign of it. Only in steem-js.
πŸ‘  
properties (23)
authordrakos
permlinkre-smitop-re-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171124t19423762z-20171125t002336783z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2017-11-25 00:24:39
last_update2017-11-25 00:36:09
depth2
children0
last_payout2017-12-02 00:24:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length303
author_reputation112,280,226,665,329
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,437,465
net_rshares93,815,256
author_curate_reward""
vote details (1)
@smitop ·
I made a PR to fix this, see [#288](https://github.com/steemit/steem-js/pull/288). It treats the block_signing_key as a string, not a public_key. 
πŸ‘  
properties (23)
authorsmitop
permlinkre-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171124t195147687z
categorywitness-category
json_metadata{"app":"chainbb/0.4","namespace":"witness","format":"markdown+html","tags":["witness"]}
created2017-11-25 00:51:51
last_update2017-11-25 00:51:51
depth1
children3
last_payout2017-12-02 00:51:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length146
author_reputation1,622,694,571,233
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries
0.
accountchainbb
weight1,400
1.
accountfollowbtcnews
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,438,951
net_rshares193,493,966
author_curate_reward""
vote details (1)
@drakos · (edited)
Didn't work, now it gives this error:
```
Unhandled rejection Error: 3010000 tx_missing_active_auth: missing required active authority
Missing Active Authority drakos
```
properties (22)
authordrakos
permlinkre-smitop-re-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171125t030000986z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2017-11-25 03:01:03
last_update2017-11-25 03:04:51
depth2
children2
last_payout2017-12-02 03:01:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length170
author_reputation112,280,226,665,329
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,445,818
net_rshares0
@smitop · (edited)
Are you sure you’re using your active key (*not* your signing key, posting key, or memo key) in the first argument to the updateWitness function?
properties (22)
authorsmitop
permlinkre-drakos-re-smitop-re-drakos-offering-20-steem-reward-to-fix-a-bug-in-steem-js-20171125t114707362z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2017-11-25 11:47:06
last_update2017-11-25 12:01:33
depth3
children1
last_payout2017-12-02 11:47:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length145
author_reputation1,622,694,571,233
root_title"Offering 20 STEEM Reward to Fix a Bug in Steem-JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,476,199
net_rshares0