{"action":"created","issue":{"url":"https://api.github.com/repos/EOSIO/eos/issues/1255","repository_url":"https://api.github.com/repos/EOSIO/eos","labels_url":"https://api.github.com/repos/EOSIO/eos/issues/1255/labels{/name}","comments_url":"https://api.github.com/repos/EOSIO/eos/issues/1255/comments","events_url":"https://api.github.com/repos/EOSIO/eos/issues/1255/events","html_url":"https://github.com/EOSIO/eos/issues/1255","id":293217038,"number":1255,"title":"DAWN-550 ⁃ add compression on transactions","user":{"login":"blockone-syncclient","id":33108511,"avatar_url":"https://avatars0.githubusercontent.com/u/33108511?v=4","gravatar_id":"","url":"https://api.github.com/users/blockone-syncclient","html_url":"https://github.com/blockone-syncclient","followers_url":"https://api.github.com/users/blockone-syncclient/followers","following_url":"https://api.github.com/users/blockone-syncclient/following{/other_user}","gists_url":"https://api.github.com/users/blockone-syncclient/gists{/gist_id}","starred_url":"https://api.github.com/users/blockone-syncclient/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blockone-syncclient/subscriptions","organizations_url":"https://api.github.com/users/blockone-syncclient/orgs","repos_url":"https://api.github.com/users/blockone-syncclient/repos","events_url":"https://api.github.com/users/blockone-syncclient/events{/privacy}","received_events_url":"https://api.github.com/users/blockone-syncclient/received_events","type":"User","site_admin":false},"labels":[{"id":731803026,"url":"https://api.github.com/repos/EOSIO/eos/labels/track-in-jira","name":"track-in-jira","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":{"login":"wanderingbort","id":2494946,"avatar_url":"https://avatars0.githubusercontent.com/u/2494946?v=4","gravatar_id":"","url":"https://api.github.com/users/wanderingbort","html_url":"https://github.com/wanderingbort","followers_url":"https://api.github.com/users/wanderingbort/followers","following_url":"https://api.github.com/users/wanderingbort/following{/other_user}","gists_url":"https://api.github.com/users/wanderingbort/gists{/gist_id}","starred_url":"https://api.github.com/users/wanderingbort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanderingbort/subscriptions","organizations_url":"https://api.github.com/users/wanderingbort/orgs","repos_url":"https://api.github.com/users/wanderingbort/repos","events_url":"https://api.github.com/users/wanderingbort/events{/privacy}","received_events_url":"https://api.github.com/users/wanderingbort/received_events","type":"User","site_admin":false},"assignees":[{"login":"wanderingbort","id":2494946,"avatar_url":"https://avatars0.githubusercontent.com/u/2494946?v=4","gravatar_id":"","url":"https://api.github.com/users/wanderingbort","html_url":"https://github.com/wanderingbort","followers_url":"https://api.github.com/users/wanderingbort/followers","following_url":"https://api.github.com/users/wanderingbort/following{/other_user}","gists_url":"https://api.github.com/users/wanderingbort/gists{/gist_id}","starred_url":"https://api.github.com/users/wanderingbort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanderingbort/subscriptions","organizations_url":"https://api.github.com/users/wanderingbort/orgs","repos_url":"https://api.github.com/users/wanderingbort/repos","events_url":"https://api.github.com/users/wanderingbort/events{/privacy}","received_events_url":"https://api.github.com/users/wanderingbort/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-01-31T16:11:16Z","updated_at":"2018-02-23T19:45:58Z","closed_at":"2018-02-01T12:21:41Z","author_association":"NONE","body":"In order to handle large transactions like `setcode` and future user driven transactions we are going to add the concept of compression to transactions\n\n"},"comment":{"url":"https://api.github.com/repos/EOSIO/eos/issues/comments/368119014","html_url":"https://github.com/EOSIO/eos/issues/1255#issuecomment-368119014","issue_url":"https://api.github.com/repos/EOSIO/eos/issues/1255","id":368119014,"user":{"login":"blockone-syncclient","id":33108511,"avatar_url":"https://avatars0.githubusercontent.com/u/33108511?v=4","gravatar_id":"","url":"https://api.github.com/users/blockone-syncclient","html_url":"https://github.com/blockone-syncclient","followers_url":"https://api.github.com/users/blockone-syncclient/followers","following_url":"https://api.github.com/users/blockone-syncclient/following{/other_user}","gists_url":"https://api.github.com/users/blockone-syncclient/gists{/gist_id}","starred_url":"https://api.github.com/users/blockone-syncclient/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blockone-syncclient/subscriptions","organizations_url":"https://api.github.com/users/blockone-syncclient/orgs","repos_url":"https://api.github.com/users/blockone-syncclient/repos","events_url":"https://api.github.com/users/blockone-syncclient/events{/privacy}","received_events_url":"https://api.github.com/users/blockone-syncclient/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T19:45:58Z","updated_at":"2018-02-23T19:45:58Z","author_association":"NONE","body":"➤ Bart Wyatt commented:\n\nyou can see transaction compression in a few places:  using `eosioc`  any call to `set code` will create a compressed transaction.  The code that does this is here: https://github.com/EOSIO/eos/blob/master/programs/eosioc/main.cpp#L287\n\nIn addition, there are unit tests that verify a compressed transaction results in proper packed bytes here: https://github.com/EOSIO/eos/blob/master/libraries/chain/test/transaction_test.cpp#L55-L108\n\nthe construction of those payloads is deterministic for zlib at level 9.  In pseudo code for NodeJS if you take a hex string representing our old binary transaction and compress it by:\n\nlet zlib = require('zlib'); zlib.deflateSync(transaction_buffer, {level: 9});\n\nyou should see the expected hex string\n"}}
{"actor":{"display_login":"blockone-syncclient"}}