question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lack of `DeserializeUnsigned` for transaction

See original GitHub issue

For class Transaction, it seems we lack the deserializedUnsigned method to deserialize byte array without witnesses to transaction object.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gsmachadocommented, Nov 5, 2021

@bettybao1209 we merged #675 and I think it would solve this issue. 😄

We published a version to v3.13.2-SNAPSHOT. You can try it out and give us feedback.

I’m closing this issue at the moment. If you test and it’s still not working for your use case, please re-open this issue. 👍

0reactions
bettybao1209commented, Nov 5, 2021

Hey @bettybao1209, you can use the class NeoSerializableInterface to deserialize the serialized byte array of an unsigned transaction like in the code example below. The only difference is that the signer is deserialized into the class Signer instead of AccountSigner. Adding a witness to the deserialized transaction and then send it works fine. I have tested that and I’m using this approach in an ongoing project myself.

Maybe I misunderstood, could you tell me where I am wrong? I tried to deserialize the tx unsigned and it throws the java.io.EOFException.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rlp - Understanding serialized unsigned raw transaction
I'm currently learning about RLP (ethereum-under-the-hood-part-ii, wiki-eth-rlp) and Ethereum transaction structure, my goal is to create an ...
Read more >
Unsigned transaction can't be serialized and deserialized ...
I have the following code working: var tx = new bitcore.Transaction(). from(outputs). to(address, amount). change(change). fee(fee); ...
Read more >
Json.NET crashes when serializing unsigned integer (ulong ...
NET Json library that can handle unsigned int's? *EDIT: code below; * It serializes fine, but when its deserializing it throws an error;...
Read more >
XmlSerializer Class (System.Xml.Serialization) | Microsoft Learn
Serializes and deserializes objects into and from XML documents. The XmlSerializer enables you to control how objects are encoded into XML.
Read more >
Serializing Data - Solana Cookbook
Learn how to serialize and deserialize data on Solana.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found