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

chore(core): remove ed25519_consensus from public API #1277

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

SuperFluffy
Copy link
Member

@SuperFluffy SuperFluffy commented Jul 16, 2024

Summary

Ensures that ed25519_consensus is not part of the public astria-core API.

Background

The definition struct astria_core::crypto::Error(#[from] ed25519_consensus::Error) leaks ed25519_consensus::Error into the public API of astria-core. This patch removes the #[from] attribute and updates a few lines by explicit constructors, map_err(Error).

Changes

  • Remove the From<ed25519_consensus::Error> for crypto::Error impl, removing ed25519_consensus from astria-core's public API.

Breaking Changelist

This is a breaking change in astria-core but not in any of our services. Because we don't yet publish astria-core, this is not a breaking change at this moment but would be breaking in the future.

Related Issues

Closes #1221

@SuperFluffy SuperFluffy requested a review from a team as a code owner July 16, 2024 12:57
Copy link
Contributor

@Fraser999 Fraser999 left a comment

Choose a reason for hiding this comment

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

Nice catch - my bad!

@SuperFluffy SuperFluffy added this pull request to the merge queue Jul 26, 2024
Merged via the queue into main with commit 8462025 Jul 26, 2024
47 checks passed
@SuperFluffy SuperFluffy deleted the superfluffy/remove-ed25519-consensus-from-pub branch July 26, 2024 13:38
steezeburger added a commit that referenced this pull request Jul 29, 2024
* main:
  release: cut bridge withdrawer release (#1303)
  release: version cuts for dusk-9 (#1299)
  chore(core): remove ed25519_consensus from public API (#1277)
  chore: remove spurious entry in gitignore (#1276)
  chore(chart): Update EVM-Rollup Geth devTag (#1300)
  fix(proto)!: Change execution API to use primitive RollupId (#1291)
  refactor(core, proto)!: define bridge memos in proto (#1285)
  chore(sequencer-relayer)!: minimize resubmissions to Celestia (#1234)
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.

Remove remaining ed25519_consensus types from public astria-core API
2 participants