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

feat: primitive utils and improvements #52

Merged
merged 21 commits into from
Jun 1, 2023
Merged

feat: primitive utils and improvements #52

merged 21 commits into from
Jun 1, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented May 20, 2023

Cherry-picked from #48, #50 and #51. Necessary for #51.
Supersedes #48

@DaniPopes DaniPopes requested a review from prestwich May 20, 2023 14:02
@DaniPopes DaniPopes marked this pull request as ready for review May 20, 2023 14:02
derive_more = "0.99"
tiny-keccak = { workspace = true, features = ["keccak"] }
bytes.workspace = true
getrandom = "0.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

likely breaks wasm?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This? https://docs.rs/getrandom/latest/getrandom/#webassembly-support

This feature should only be enabled for binary, test, or benchmark crates. Library crates should generally not enable this feature, leaving such a decision to users of their library. Also, libraries should not introduce their own js features just to enable getrandom’s js feature.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2023-05-31 at 10 10 59 AM

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay only change I want here is documentation that wasm users must set this feature in either their dev-deps or their main deps

that can be in a separate PR

crates/rlp/src/encode.rs Outdated Show resolved Hide resolved
@DaniPopes DaniPopes mentioned this pull request May 30, 2023
@prestwich
Copy link
Member

needs the doc fixed

}
}

/// See Section 4.3.1 "Transaction Receipt" of the Ethereum Yellow Paper.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

god i hate the yellow paper

crates/primitives/src/bits/bloom.rs Outdated Show resolved Hide resolved
crates/primitives/src/bits/bloom.rs Outdated Show resolved Hide resolved
crates/primitives/src/bits/bloom.rs Outdated Show resolved Hide resolved
crates/primitives/src/bits/impl_core.rs Show resolved Hide resolved
crates/primitives/src/bits/serde.rs Show resolved Hide resolved
crates/primitives/src/bytes/mod.rs Show resolved Hide resolved
crates/primitives/src/utils.rs Outdated Show resolved Hide resolved
crates/primitives/src/utils.rs Outdated Show resolved Hide resolved
crates/primitives/src/utils.rs Outdated Show resolved Hide resolved
* refactor: improve bloom implementation quality

* chore: fmt

* fixes: address PR review comments
@DaniPopes DaniPopes merged commit 70edd50 into main Jun 1, 2023
@DaniPopes DaniPopes deleted the dani/changes branch June 1, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants