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
Field #1: 0A String Length = 33, Hex = 21, UTF8 = "��x�2o��o}��/�� ..." (total 31 chars)
Field #2: 12 String Length = 33, Hex = 21, UTF8 = "��x�2o��o}��/�� ..." (total 31 chars)
Field #3: 18 Varint Value = 5000000, Hex = C0-96-B1-02
Field #4: 20 Varint Value = 143, Hex = 8F-01
Field #6: 30 Varint Value = 35000, Hex = B8-91-02
Jerm's conclusion:
The missing field, #7, is the memo field.
there's a protobuf encoding problem in the signature function.
My hunch is that HeliumJS is unable to properly encode any transaction in which one of the elements is the integer zero. You wouldn't notice this in most transactions, though, because they'd be nonsense.
blockchain_txn_transfer_hotspot_v1 is one that could potentially be visible. If you transfer without requesting HNT payment, it would have an amount_to_seller field of 0.
and it's treating "0" as "empty" instead of null as empty.
The text was updated successfully, but these errors were encountered:
Description
The bug happens on signing TokenBurnV1 transactions with an empty
memo
field, possibly during the encoding transaction process.Platform
NodeJS 12.16.1
Ubuntu 16.04
Packages versions
@helium/crypto: 3.7.0
@helium/http: 3.22.0
@helium/proto: 1.2.0
@helium/transactions: 3.20.0
Test code
Using txn.toString(), it generates the next transaction:
Submitting the transaction to the network, fails and gives an invalid signature error. (Failed transaction link)
But, changing the memo field with another value different than an empty string, it works.
It generates the next transaction and the node accepted it (Sucessfully transaction link)
Using the Helium CLI Wallet, it generates and submits perfectly the transaction (Successfully transaction link)
Extra
Yesterday, a user named
Jerm
helped me a lot by giving additional information:Jerm's conclusion:
The text was updated successfully, but these errors were encountered: