Skip to content

Commit

Permalink
evil: remove encrypt call, rebuild wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jul 6, 2023
1 parent 9c48f6c commit dd16b98
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 23 deletions.
2 changes: 0 additions & 2 deletions shared/src/ledger/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,6 @@ pub async fn sign_tx<U: WalletUtils>(
)));
// Remove all the sensitive sections
tx.protocol_filter();
// Encrypt all sections not relating to the header
tx.encrypt(&Default::default());
// Then sign over the bound wrapper
tx.add_section(Section::Signature(Signature::new(
tx.sechashes(),
Expand Down
2 changes: 0 additions & 2 deletions shared/src/ledger/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ pub async fn process_tx<
if args.dry_run {
expect_dry_broadcast(TxBroadcastData::DryRun(tx), client).await
} else {
// Encrypt all sections not relating to the header
tx.encrypt(&Default::default());
// We use this to determine when the wrapper tx makes it on-chain
let wrapper_hash = tx.header_hash().to_string();
// We use this to determine when the decrypted inner tx makes it
Expand Down
38 changes: 19 additions & 19 deletions wasm/checksums.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"tx_bond.wasm": "tx_bond.cc32955f1d4db4a3da181422d18a7f957f9621b6741f89833368c4401f906a4b.wasm",
"tx_change_validator_commission.wasm": "tx_change_validator_commission.204e819544ae9ea6a3b1da4737eb7d17c4cdf2b9a13a2ebca0437abaee8aa93c.wasm",
"tx_ibc.wasm": "tx_ibc.e4900783fd0432da76a4d8670e6fb4c8ffbbbbafcd6f7c297470b1fb2101e89c.wasm",
"tx_init_account.wasm": "tx_init_account.804728adb12afd263bb2e85bee2d54b6075fc5dbac960cfc0bd515d1885d1953.wasm",
"tx_init_proposal.wasm": "tx_init_proposal.f59e980d3d6318f55bb9b415696810b7ea74e1561c79e5535cf921b86a732469.wasm",
"tx_init_validator.wasm": "tx_init_validator.a4a46d9d8260c2ae6fa0457b94e9d68226e36082a5e40e224a2543ad8b2dee7b.wasm",
"tx_reveal_pk.wasm": "tx_reveal_pk.0c739b1bb6e27476d81e662816b61abdaa4096dc44d3125351fec6c2334ac8bf.wasm",
"tx_transfer.wasm": "tx_transfer.aa377c8949f3248f6497d520fd14ba877211eec328866bc2189cc777c18c1402.wasm",
"tx_unbond.wasm": "tx_unbond.e87561880b0dc53b44de1464e5ef2ac3d87f9d88458888d99fc2934416edad51.wasm",
"tx_unjail_validator.wasm": "tx_unjail_validator.fc0f2633868c70e650ed6c98fdc7b6c29059346bca2580f9b6bbc191fe31c892.wasm",
"tx_update_vp.wasm": "tx_update_vp.c264b31144dec6ca24624351c3a37ba7d47f618dd7b3f6b3d0b679b0e0fb9c47.wasm",
"tx_vote_proposal.wasm": "tx_vote_proposal.ee75560b69a2566ecfd2fe8eb2fb166aeb8528048ee11003cf427939f765f3ad.wasm",
"tx_withdraw.wasm": "tx_withdraw.01dccfcac196e7df1d0e1a4abb9162c551d4d5350764d0130fa4b40f4d2a92fd.wasm",
"vp_implicit.wasm": "vp_implicit.a3292269ba4e807ea9ed0601bdee00957eb3105448587c2faf2e46fded7b3895.wasm",
"vp_masp.wasm": "vp_masp.2b0fa9b4666ee36d9e5cee481b24e5d9946c566ccb0db7cca4f066448be86a3a.wasm",
"vp_testnet_faucet.wasm": "vp_testnet_faucet.304915e0f5188937529ee8163b25dcc175a580062f60c256277db72cd5296555.wasm",
"vp_token.wasm": "vp_token.8b36f44e51ff3d73c06a06f5cd4aa38a358d2bfe7a7b5c146c515878c254932f.wasm",
"vp_user.wasm": "vp_user.054d109bc1415e8bc8f9df23281b10a1b844d70150b224ba34ae699fed9568e3.wasm",
"vp_validator.wasm": "vp_validator.87d47ebcf7141cff0399d5ee797c213ea1c29e031c840a5b09c248d8c02deec2.wasm"
"tx_bond.wasm": "tx_bond.c67add23bd1d92a2cc637c46cb6d6c7a1a5f4673754d633b5ca6f9f52090eb12.wasm",
"tx_change_validator_commission.wasm": "tx_change_validator_commission.ca3fe76c81134c8444166d57ad25f121b6b992999e7eae93c1622fb59de4d006.wasm",
"tx_ibc.wasm": "tx_ibc.cfb94c4c897667205d70cec32824692baef594a6009b489f1d6cafd77bdb5429.wasm",
"tx_init_account.wasm": "tx_init_account.18a917ec1c05f5906c8c5bdfae88dd2843e222b9decf4ac76cf5a3fa05f223b9.wasm",
"tx_init_proposal.wasm": "tx_init_proposal.3233ff34a1de572aa5a06cbd266bda67e8cd204f407fd9d336764410dbec9706.wasm",
"tx_init_validator.wasm": "tx_init_validator.b28bf2b3b0c2d1f3ea9e72aadb24cffbc1f358eda3abe0454a9aec913194e118.wasm",
"tx_reveal_pk.wasm": "tx_reveal_pk.63b19e8261df8a06576a97642f8fc8e4d3b661a2fdbdc906e1ad15631802c4e3.wasm",
"tx_transfer.wasm": "tx_transfer.c07c6afbc7b43d615ee4aa878abb6ec8097873bad5e106f78e1bae3be5a73eab.wasm",
"tx_unbond.wasm": "tx_unbond.e5db24ec8278700413ace6a55dca8c1f499f1f8128c8fe271fd0acdc6d85c160.wasm",
"tx_unjail_validator.wasm": "tx_unjail_validator.1a5d7514d7af3103b8bf96282520add9d8caa5d538b5d4e5222cab68b392f961.wasm",
"tx_update_vp.wasm": "tx_update_vp.a18c4b0e5316be62fd32a5a2e10598cff7f0f6927a40a8a6eb91baeda487e030.wasm",
"tx_vote_proposal.wasm": "tx_vote_proposal.2f06fa72e89e68f4e35597d4efae48d30aa482b5bc24a13d3de241f2604e97ca.wasm",
"tx_withdraw.wasm": "tx_withdraw.5ce202dbfef367ccb0a2192a26c000b9459bbb612c1af78f915ea420a95d7c1f.wasm",
"vp_implicit.wasm": "vp_implicit.f4238c6df57bb3151fb8db7cc9d06bb15ac7c4a89de7e29ab4652b4e188b3825.wasm",
"vp_masp.wasm": "vp_masp.1084b2e3c30baa7cc7b680130e53722a2bc0b7485eac9b0a590f1bd4be660b37.wasm",
"vp_testnet_faucet.wasm": "vp_testnet_faucet.883ef9ddde8e59ec8281a0dc1ee574c2e7cc4b43675b30544b2eb686aeea9117.wasm",
"vp_token.wasm": "vp_token.cd5e207d08cc0464818a3db4f474b602a20ee66383719c6d82488ba7b0ee9178.wasm",
"vp_user.wasm": "vp_user.2f5e95cd167f054e0edf8fde190e11ed31a042e6ebbb74b9e9cb83a752a2e76a.wasm",
"vp_validator.wasm": "vp_validator.5dea20049334d528337a3d1befff8f38ec38f050b955cbd714014c340b5afcd1.wasm"
}
Binary file modified wasm_for_tests/tx_memory_limit.wasm
Binary file not shown.
Binary file modified wasm_for_tests/tx_mint_tokens.wasm
Binary file not shown.
Binary file modified wasm_for_tests/tx_no_op.wasm
Binary file not shown.
Binary file modified wasm_for_tests/tx_proposal_code.wasm
Binary file not shown.
Binary file modified wasm_for_tests/tx_read_storage_key.wasm
Binary file not shown.
Binary file modified wasm_for_tests/tx_write.wasm
Binary file not shown.
Binary file modified wasm_for_tests/tx_write_storage_key.wasm
Binary file not shown.
Binary file modified wasm_for_tests/vp_always_false.wasm
Binary file not shown.
Binary file modified wasm_for_tests/vp_always_true.wasm
Binary file not shown.
Binary file modified wasm_for_tests/vp_eval.wasm
Binary file not shown.
Binary file modified wasm_for_tests/vp_memory_limit.wasm
Binary file not shown.
Binary file modified wasm_for_tests/vp_read_storage_key.wasm
Binary file not shown.

0 comments on commit dd16b98

Please sign in to comment.