create account

Re: Steem transaction signing in a nutshell by xeroc

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @xeroc/steem-transaction-signing-in-a-nutshell

· @xeroc ·
$2.72
Re: Steem transaction signing in a nutshell
# Correction 1

John White, has discovered a flaw in the descriptions above.
This flaw is caused by the `extensions` attribute:

>     tx = {'ref_block_num': 36029,
>           'ref_block_prefix': 1164960351,
>           'expiration': '2016-08-08T12:24:17',
>           'operations': [['vote',
>                           {'author': 'xeroc',
>                            'permlink': 'piston',
>                            'voter': 'xeroc',
>                            'weight': 10000}]],
>           'extensions': [],
>           'signatures': [],
>           }

In the OP, we did **not** serialize this extensions such that our
serialized sequence was too short. Since we do not make use of
extensions here, and the serialization is a length-prefixed array,
we can fix the flaw by simply appending `0x00` to the serialization

        buf += (varint(len([]))

Everything else should stay the same.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorxeroc
permlinkre-steem-transaction-signing-in-a-nutshell-20160901t151404
categorysteem
json_metadata"{"replyto": "@xeroc/steem-transaction-signing-in-a-nutshell", "tags": []}"
created2016-09-01 15:14:06
last_update2016-09-01 15:14:06
depth1
children0
last_payout2016-09-09 03:36:30
cashout_time1969-12-31 23:59:59
total_payout_value2.661 HBD
curator_payout_value0.054 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length899
author_reputation118,819,064,085,695
root_title"Steem transaction signing in a nutshell"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,085,517
net_rshares3,782,274,305,959
author_curate_reward""
vote details (43)