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

Add tx sechashes as entropy src for established acct addr gen #2781

Merged
merged 5 commits into from
Apr 12, 2024

Conversation

sug0
Copy link
Collaborator

@sug0 sug0 commented Feb 29, 2024

Describe your changes

Closes #7

Adds a transaction's code and data section hashes as additional sources of entropy, to compute an established account's address.

Indicate on which release or other PRs this topic is based on

v0.31.8

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@sug0 sug0 added the enhancement New feature or request label Feb 29, 2024
@sug0 sug0 changed the title Tiago/addr generator randomness Add code and data section hashes as entropy sources for established account addr gen Feb 29, 2024
@sug0 sug0 changed the title Add code and data section hashes as entropy sources for established account addr gen Add tx sechashes as entropy sources for established account addr gen Feb 29, 2024
@sug0 sug0 marked this pull request as ready for review February 29, 2024 15:58
@sug0 sug0 requested review from tzemanovic, cwgoes and murisi February 29, 2024 15:58
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.95%. Comparing base (2535c9c) to head (eb3e05d).
Report is 165 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2781      +/-   ##
==========================================
- Coverage   53.95%   53.95%   -0.01%     
==========================================
  Files         308      308              
  Lines      100018   100025       +7     
==========================================
+ Hits        53967    53969       +2     
- Misses      46051    46056       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sug0
Copy link
Collaborator Author

sug0 commented Feb 29, 2024

@grarco do we need to update gas costs?

@grarco
Copy link
Collaborator

grarco commented Feb 29, 2024

@grarco do we need to update gas costs?

We'll recompute everything before mainnet, it's fine for now 👍🏻

@sug0 sug0 changed the title Add tx sechashes as entropy sources for established account addr gen Add tx sechashes as entropy src for established acct addr gen Mar 1, 2024
tzemanovic added a commit that referenced this pull request Apr 1, 2024
* origin/tiago/addr-generator-randomness:
  Changelog for #2781
  Add entropy source to `tx_init_account`
  More addr gen refactoring
  Refactor `EstablishedAddressGen::generate_address`
  Lazily clone storage addr gen
@grarco grarco self-requested a review April 4, 2024 15:56
tzemanovic added a commit that referenced this pull request Apr 10, 2024
* origin/tiago/addr-generator-randomness:
  Changelog for #2781
  Add entropy source to `tx_init_account`
  More addr gen refactoring
  Refactor `EstablishedAddressGen::generate_address`
  Lazily clone storage addr gen

# Conflicts:
#	wasm/wasm_source/src/tx_init_account.rs
@tzemanovic tzemanovic merged commit 44ceaeb into main Apr 12, 2024
14 of 17 checks passed
@tzemanovic tzemanovic deleted the tiago/addr-generator-randomness branch April 12, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more randomness to address generator
3 participants