Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode Omni Transactions #94

Open
msgilligan opened this issue Aug 10, 2015 · 5 comments
Open

Decode Omni Transactions #94

msgilligan opened this issue Aug 10, 2015 · 5 comments
Milestone

Comments

@msgilligan
Copy link
Member

The foundation.omni.tx module has OmniTxBuilder to encode transactions, but currently doesn't have the ability to decode or parse transactions. This capability should be added.

@msgilligan
Copy link
Member Author

I started work on this, it's really rough at this point, but I thought I'd check it in just in case anybody wants to help: 6915d23

@msgilligan msgilligan added this to the 0.4 milestone Sep 22, 2015
@jpe42
Copy link

jpe42 commented Sep 30, 2015

+1 This would be really nice to have. What is the best place to reference what the complete data model of an OmniTransaction should be and also the byte by byte protocol?

@msgilligan
Copy link
Member Author

@jamespedwards42 The Transaction Field Definitions section of the Spec is probably the best place to look.

@msgilligan msgilligan modified the milestones: 0.5, 0.4 Dec 22, 2015
@demo-Hexj
Copy link

Can omniij-core parse Transactions now? The code seems not very complete.

@ngocbd
Copy link

ngocbd commented Dec 20, 2018

java.lang.RuntimeException: Not an Omni Transaction when parse omni transaction .

Transaction t = new Transaction(NetworkParameters.prodNet(), Hex.decodeHex("01000000060825f2c23f7faec6b977b2ca381f560ec4d9834ee600e80c7c3b85c597a89ee2000000006a47304402201b3fa2d1d080193213e7979b6f409a426043a6fbe0c3baa771a8866780561a1f022012737d0e0f335683c407ac6c2f7c93288bdee4d83a003fadfe8d4e5c99828ade012102f54df19dd85199eda214e68a4fa5b8b70d035f814e30ac823ca21913e7d1fd90feffffff0f16e61b25eb8df59f6d0bb689eb5229b24bfc7718cce2c7b27b7bfb4c3db241000000006b483045022100952d00e79f73bbccd74423fdf1cf7d46d66a40e2fd9da95de3884c7e5b60cbc302206713a8fe5e5a75ca92e80574599d3d9b8590a86052ff9c706fc1e7d9eed681f0012102f54df19dd85199eda214e68a4fa5b8b70d035f814e30ac823ca21913e7d1fd90feffffff5011c4e0b956a88a677df717ccf6c7d55f9febd6ca4b709b3008dd33997b95e2010000006b483045022100bfb77acc0807748dc20fba5e157262c008bf4f93c65dd9657aedcda6614c8b0002201208fe29cde968fffd255d3d774bd8d95cc2a17eb871516daa0ea1ead38c4440012102f54df19dd85199eda214e68a4fa5b8b70d035f814e30ac823ca21913e7d1fd90feffffff6b4264e1ddbb98c6bfc623bfbd5c82567f55286ea52931f4e30dd7f311c4d0e0000000006b483045022100edbcb1b23b188702b287ca89ac051ef1d415c67b53a28b096869b1c543763105022075513b70df349dfa785a7cd3a377d8eb3b8cff84e955808aca6c32faf013aa63012102f54df19dd85199eda214e68a4fa5b8b70d035f814e30ac823ca21913e7d1fd90feffffff7276e9803ee7b33652aa01977059fdb70e4605b883e8d96013475e34827ee59c000000006a47304402200daa66f87bd7a707a03e3bd775e00abe0e4a9347cfb59889069c8a71c10937b002203aec5bd3eb46df51dcd8054b83f50f53125cc9771e92d6ef8006f4972b250ba5012102f54df19dd85199eda214e68a4fa5b8b70d035f814e30ac823ca21913e7d1fd90feffffff738fcfa25d117bed0525d733dbcd2dd64727087485a26feaf9e914b8ccebe58a010000006a47304402207c19b25c921f60d84eba08901f561e07ff8e4ec87fad403b7859744eaff967ca022056f306fd16a72875dc800f51d4fd7e9121c762f73435a0a7b79b9ed74b65d2f2012102f54df19dd85199eda214e68a4fa5b8b70d035f814e30ac823ca21913e7d1fd90feffffff030000000000000000166a146f6d6e69000000000000001f0000004eab09df40e2a10700000000001976a914d9295989e2f77795cd4db00225038dd340c85f1288ac22020000000000001976a914f0c15e1c4e32cd3e578d4658ed5b4754d8b0465788ac41760800".toCharArray())); OmniTransactionParser parser = new OmniTransactionParser(); OmniTransaction omniTransaction = parser.parse(t);

@msgilligan msgilligan modified the milestones: 0.6, 0.7 Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants