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

in #witness-category8 years ago (edited)

Developers, developers, developers, developers, developers!

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.

witnesstool.png

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.

I'm offering a 20 STEEM for anyone who can fix it within a week.
So get crackin'.

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.

Developers, developers, developers, developers, developers!


Logo 2 Steemit-200x200.png
Check out Steemian.Info, the concise information resource about the Steem blockchain



Are you a visual artist? Join the Steem Artists Guild.
We are on Discord at https://discord.gg/CY9u65g

Proud member and delegator of the @minnowsupport project.
Join us on https://discord.gg/GpHEEhV

MSPPAL


Follow

Available & Reliable. I am your Witness. I want to represent You.

🗳 If you like what I do, consider voting for me 🗳

Vote

If you never voted before, I wrote a detailed guide about Voting for Witnesses.

Go to https://steemit.com/~witnesses. My name is listed in the Top 50. Click the upvote symbol.

Alternatively,

with cli_wallet : vote_for_witness "YOURACCOUNT" "drakos" true true
with steem-python: steempy approvewitness drakos --account YOURACCOUNT

Sort:  

I made a PR to fix this, see #288. It treats the block_signing_key as a string, not a public_key.

Didn't work, now it gives this error:

Unhandled rejection Error: 3010000 tx_missing_active_auth: missing required active authority
Missing Active Authority drakos

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?

Of course.

I have not been able to vote for a witness since I started Steemit :(

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

It's really easy, check this guide https://steemian.info/voting

Well not sure about bug reported, but I always do this and it works!

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'); }); } });

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 😞

Appears to be a function forcing all signatures to be valid.

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.